public interface LogicalOggStream
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_FLAC |
static String |
FORMAT_THEORA |
static String |
FORMAT_UNKNOWN |
static String |
FORMAT_VORBIS |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream.
|
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.
|
static final String FORMAT_UNKNOWN
static final String FORMAT_VORBIS
static final String FORMAT_FLAC
static final String FORMAT_THEORA
OggPage getNextOggPage() throws OggFormatException, IOException
getNextOggPacket.
Mixing calls to the two methods will cause data corruption.OggFormatException - if the ogg stream is corruptedIOException - if some other IO error occursgetNextOggPacket()byte[] getNextOggPacket()
throws OggFormatException,
IOException
getNextOggPage.
Mixing calls to the two methods will cause data corruption.OggFormatException - if the ogg stream is corruptedIOException - if some other IO error occursgetNextOggPage()boolean isOpen()
true if this stream is open for reading,
false otherwisevoid close()
throws IOException
IOException - if an IO error occursvoid reset()
throws OggFormatException,
IOException
OggFormatException - if the ogg stream is corruptedIOException - if some other IO error occurslong getMaximumGranulePosition()
void setTime(long granulePosition)
throws IOException
granulePosition - IOException - if an IO error occursPhysicalOggStream.setTime(long)long getTime()
String getFormat()
FORMAT_UNKNOWN,
FORMAT_VORBIS,
FORMAT_FLAC,
FORMAT_THEORACopyright © 2017. All rights reserved.