public static void main(String args[]) {
		try {
			InputStream in = new Object().getClass().getResourceAsStream("/audio/slash.ogg");
			ByteArrayOutputStream byteOut = new ByteArrayOutputStream(1024*256);
			byteOut.reset();
			byte copyBuffer[] = new byte[1024*4];
			OggInputStream oggInput = new OggInputStream(in);
			boolean done = false;
			while (!done) {
				int bytesRead = oggInput.read(copyBuffer, 0, copyBuffer.length);
				byteOut.write(copyBuffer, 0, bytesRead);
				done = (bytesRead != copyBuffer.length || bytesRead < 0);
			}
			System.out.println(byteOut.size() + " bytes read");
			System.out.println(oggInput);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}