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