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 void
addGranulePosition(long long1)
void
addPageNumberMapping(int int1)
void
checkFormat(OggPage oggPage)
void
close()
java.lang.String
getFormat()
long
getMaximumGranulePosition()
byte[]
getNextOggPacket()
OggPage
getNextOggPage()
long
getTime()
boolean
isOpen()
void
reset()
void
setTime(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:
reset
in interfaceLogicalOggStream
- Throws:
OggFormatException
java.io.IOException
-
getNextOggPage
public OggPage getNextOggPage() throws EndOfOggStreamException, OggFormatException, java.io.IOException- Specified by:
getNextOggPage
in interfaceLogicalOggStream
- Throws:
EndOfOggStreamException
OggFormatException
java.io.IOException
-
getNextOggPacket
public byte[] getNextOggPacket() throws EndOfOggStreamException, OggFormatException, java.io.IOException- Specified by:
getNextOggPacket
in interfaceLogicalOggStream
- Throws:
EndOfOggStreamException
OggFormatException
java.io.IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceLogicalOggStream
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfaceLogicalOggStream
- Throws:
java.io.IOException
-
getMaximumGranulePosition
public long getMaximumGranulePosition()- Specified by:
getMaximumGranulePosition
in interfaceLogicalOggStream
-
getTime
public long getTime()- Specified by:
getTime
in interfaceLogicalOggStream
-
setTime
public void setTime(long long1) throws java.io.IOException- Specified by:
setTime
in interfaceLogicalOggStream
- Throws:
java.io.IOException
-
checkFormat
-
getFormat
public java.lang.String getFormat()- Specified by:
getFormat
in interfaceLogicalOggStream
-