public class OggInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
OggInputStream(java.io.InputStream input)
Create a new stream to decode OGG data
|
OggInputStream(java.io.InputStream input,
OggInputStream previousStream)
Create a new stream to decode OGG data, reusing buffers from another stream.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
atEnd() |
int |
available() |
void |
close() |
int |
getChannels() |
int |
getLength()
Get the number of bytes on the stream
|
int |
getSampleRate() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
public OggInputStream(java.io.InputStream input)
input - The input stream from which to read the OGG filepublic OggInputStream(java.io.InputStream input,
OggInputStream previousStream)
input - The input stream from which to read the OGG filepreviousStream - The stream instance to reuse buffers from, may be nullpublic int getLength()
public int getChannels()
public int getSampleRate()
public int available()
available in class java.io.InputStreamInputStream.available()public int read()
read in class java.io.InputStreampublic boolean atEnd()
public int read(byte[] b,
int off,
int len)
read in class java.io.InputStreampublic int read(byte[] b)
read in class java.io.InputStreampublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStream