|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.jmex.audio.stream.AudioInputStream
com.jmex.audio.stream.OggInputStream
public class OggInputStream
Decompresses an Ogg file as it streams from a source.
Field Summary |
---|
Fields inherited from class com.jmex.audio.stream.AudioInputStream |
---|
filters |
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
OggInputStream(java.net.URL resource,
float length)
Creates an OggInputStream that decompressed the specified ogg file. |
Method Summary | |
---|---|
int |
available()
Returns 0 after EOF is reached, otherwise always return 1. |
int |
getBitRate()
|
int |
getChannelCount()
|
int |
getDepth()
|
OggInputStream |
makeNew()
|
boolean |
markSupported()
OggInputStream does not support mark and reset. |
int |
read()
Reads the next byte of data from this input stream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes. |
int |
read(java.nio.ByteBuffer b,
int off,
int len)
Reads up to len bytes of data from the input stream into a ByteBuffer. |
void |
reset()
OggInputStream does not support mark and reset. |
long |
skip(long n)
Skips over and discards n bytes of data from the input stream. |
java.lang.String |
toString()
Gets information on the ogg. |
Methods inherited from class com.jmex.audio.stream.AudioInputStream |
---|
addFilter, getLength, getResource, setLength, sniffFormat |
Methods inherited from class java.io.FilterInputStream |
---|
close, mark, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OggInputStream(java.net.URL resource, float length) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int getBitRate()
getBitRate
in class AudioInputStream
public int getDepth()
getDepth
in class AudioInputStream
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
b
- the buffer into which the data is read.off
- the start offset of the data.len
- the maximum number of bytes read.
java.io.IOException
public int read(java.nio.ByteBuffer b, int off, int len) throws java.io.IOException
read
in class AudioInputStream
b
- the buffer into which the data is read.off
- the start offset of the data.len
- the maximum number of bytes read.
java.io.IOException
public int available() throws java.io.IOException
Programs should not count on this method to return the actual number of bytes that could be read without blocking.
available
in class java.io.FilterInputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
n
- the number of bytes to be skipped.
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public int getChannelCount()
getChannelCount
in class AudioInputStream
public OggInputStream makeNew() throws java.io.IOException
makeNew
in class AudioInputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |