|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface providing access to a logical Ogg stream as part of a physical Ogg stream.
| Field Summary | |
static java.lang.String |
FORMAT_FLAC
|
static java.lang.String |
FORMAT_THEORA
|
static java.lang.String |
FORMAT_UNKNOWN
|
static java.lang.String |
FORMAT_VORBIS
|
| Method Summary | |
void |
close()
Closes this stream. |
java.lang.String |
getFormat()
|
long |
getMaximumGranulePosition()
This method does not work if the physical Ogg stream is not seekable. |
byte[] |
getNextOggPacket()
Note: To read from the stream, you must use either this method or the method getNextOggPage.
|
OggPage |
getNextOggPage()
Note: To read from the stream, you must use either this method or the method getNextOggPacket.
|
long |
getTime()
|
boolean |
isOpen()
Checks if this stream is open for reading. |
void |
reset()
Sets the stream's position to the beginning of the stream. |
void |
setTime(long granulePosition)
This method is invoked on all logical streams when calling the same method on the physical stream. |
| Field Detail |
public static final java.lang.String FORMAT_UNKNOWN
public static final java.lang.String FORMAT_VORBIS
public static final java.lang.String FORMAT_FLAC
public static final java.lang.String FORMAT_THEORA
| Method Detail |
public OggPage getNextOggPage()
throws OggFormatException,
java.io.IOException
getNextOggPacket.
Mixing calls to the two methods will cause data corruption.
OggFormatException - if the ogg stream is corrupted
java.io.IOException - if some other IO error occursgetNextOggPacket()
public byte[] getNextOggPacket()
throws OggFormatException,
java.io.IOException
getNextOggPage.
Mixing calls to the two methods will cause data corruption.
OggFormatException - if the ogg stream is corrupted
java.io.IOException - if some other IO error occursgetNextOggPage()public boolean isOpen()
true if this stream is open for reading,
false otherwise
public void close()
throws java.io.IOException
java.io.IOException - if an IO error occurs
public void reset()
throws OggFormatException,
java.io.IOException
OggFormatException - if the ogg stream is corrupted
java.io.IOException - if some other IO error occurspublic long getMaximumGranulePosition()
public void setTime(long granulePosition)
throws java.io.IOException
granulePosition -
java.io.IOException - if an IO error occursPhysicalOggStream.setTime(long)public long getTime()
public java.lang.String getFormat()
FORMAT_UNKNOWN,
FORMAT_VORBIS,
FORMAT_FLAC,
FORMAT_THEORA
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||