|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jarnbjo.ogg.LogicalOggStreamImpl
| Field Summary |
| Fields inherited from interface de.jarnbjo.ogg.LogicalOggStream |
FORMAT_FLAC, FORMAT_THEORA, FORMAT_UNKNOWN, FORMAT_VORBIS |
| Constructor Summary | |
LogicalOggStreamImpl(PhysicalOggStream source,
int serialNumber)
|
|
| Method Summary | |
void |
addGranulePosition(long granulePosition)
|
void |
addPageNumberMapping(int physicalPageNumber)
|
void |
checkFormat(OggPage page)
|
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LogicalOggStreamImpl(PhysicalOggStream source,
int serialNumber)
| Method Detail |
public void addPageNumberMapping(int physicalPageNumber)
public void addGranulePosition(long granulePosition)
public void reset()
throws OggFormatException,
java.io.IOException
LogicalOggStream
reset in interface LogicalOggStreamOggFormatException - if the ogg stream is corrupted
java.io.IOException - if some other IO error occurs
public OggPage getNextOggPage()
throws EndOfOggStreamException,
OggFormatException,
java.io.IOException
LogicalOggStreamgetNextOggPacket.
Mixing calls to the two methods will cause data corruption.
getNextOggPage in interface LogicalOggStreamjava.io.IOException - if some other IO error occurs
OggFormatException - if the ogg stream is corrupted
EndOfOggStreamExceptionLogicalOggStream.getNextOggPacket()
public byte[] getNextOggPacket()
throws EndOfOggStreamException,
OggFormatException,
java.io.IOException
LogicalOggStreamgetNextOggPage.
Mixing calls to the two methods will cause data corruption.
getNextOggPacket in interface LogicalOggStreamOggFormatException - if the ogg stream is corrupted
java.io.IOException - if some other IO error occurs
EndOfOggStreamExceptionLogicalOggStream.getNextOggPage()public boolean isOpen()
LogicalOggStream
isOpen in interface LogicalOggStreamtrue if this stream is open for reading,
false otherwise
public void close()
throws java.io.IOException
LogicalOggStream
close in interface LogicalOggStreamjava.io.IOException - if an IO error occurspublic long getMaximumGranulePosition()
LogicalOggStream
getMaximumGranulePosition in interface LogicalOggStreampublic long getTime()
getTime in interface LogicalOggStream
public void setTime(long granulePosition)
throws java.io.IOException
LogicalOggStream
setTime in interface LogicalOggStreamgranulePosition -
java.io.IOException - if an IO error occursPhysicalOggStream.setTime(long)public void checkFormat(OggPage page)
public java.lang.String getFormat()
getFormat in interface LogicalOggStreamLogicalOggStream.FORMAT_UNKNOWN,
LogicalOggStream.FORMAT_VORBIS,
LogicalOggStream.FORMAT_FLAC,
LogicalOggStream.FORMAT_THEORA
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||