public class OggStreamDecoder extends StreamDecoder
| Constructor and Description |
|---|
OggStreamDecoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
getFormat()
Returns the sound format (see
Stream.getFormat()). |
int |
getFrequency()
Returns the sound frequency (see
Stream.getFrequency()). |
void |
init(InputStream in)
Initializes the decoder with its input stream.
|
int |
read(ByteBuffer buf)
Reads as much data as will fit into the specified buffer.
|
createInstance, createInstance, registerExtensionpublic void init(InputStream in) throws IOException
StreamDecoderinit in class StreamDecoderIOExceptionpublic int getFormat()
StreamDecoderStream.getFormat()).getFormat in class StreamDecoderpublic int getFrequency()
StreamDecoderStream.getFrequency()).getFrequency in class StreamDecoderpublic int read(ByteBuffer buf) throws IOException
StreamDecoderread in class StreamDecoderIOExceptionCopyright © 2015. All rights reserved.