Package de.jarnbjo.ogg
Class LogicalOggStreamImpl
java.lang.Object
de.jarnbjo.ogg.LogicalOggStreamImpl
- All Implemented Interfaces:
LogicalOggStream
public class LogicalOggStreamImpl extends java.lang.Object implements LogicalOggStream
-
Field Summary
Fields inherited from interface de.jarnbjo.ogg.LogicalOggStream
FORMAT_FLAC, FORMAT_THEORA, FORMAT_UNKNOWN, FORMAT_VORBIS -
Constructor Summary
Constructors Constructor Description LogicalOggStreamImpl(PhysicalOggStream physicalOggStream, int int1) -
Method Summary
Modifier and Type Method Description voidaddGranulePosition(long long1)voidaddPageNumberMapping(int int1)voidcheckFormat(OggPage oggPage)voidclose()java.lang.StringgetFormat()longgetMaximumGranulePosition()byte[]getNextOggPacket()OggPagegetNextOggPage()longgetTime()booleanisOpen()voidreset()voidsetTime(long long1)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LogicalOggStreamImpl
-
-
Method Details
-
addPageNumberMapping
public void addPageNumberMapping(int int1) -
addGranulePosition
public void addGranulePosition(long long1) -
reset
- Specified by:
resetin interfaceLogicalOggStream- Throws:
OggFormatExceptionjava.io.IOException
-
getNextOggPage
public OggPage getNextOggPage() throws EndOfOggStreamException, OggFormatException, java.io.IOException- Specified by:
getNextOggPagein interfaceLogicalOggStream- Throws:
EndOfOggStreamExceptionOggFormatExceptionjava.io.IOException
-
getNextOggPacket
public byte[] getNextOggPacket() throws EndOfOggStreamException, OggFormatException, java.io.IOException- Specified by:
getNextOggPacketin interfaceLogicalOggStream- Throws:
EndOfOggStreamExceptionOggFormatExceptionjava.io.IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceLogicalOggStream
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceLogicalOggStream- Throws:
java.io.IOException
-
getMaximumGranulePosition
public long getMaximumGranulePosition()- Specified by:
getMaximumGranulePositionin interfaceLogicalOggStream
-
getTime
public long getTime()- Specified by:
getTimein interfaceLogicalOggStream
-
setTime
public void setTime(long long1) throws java.io.IOException- Specified by:
setTimein interfaceLogicalOggStream- Throws:
java.io.IOException
-
checkFormat
-
getFormat
public java.lang.String getFormat()- Specified by:
getFormatin interfaceLogicalOggStream
-