Package de.jarnbjo.ogg
Class OggPage
java.lang.Object
de.jarnbjo.ogg.OggPage
public class OggPage
extends java.lang.Object
-
Constructor Summary
Constructors Modifier Constructor Description protectedOggPage() -
Method Summary
Modifier and Type Method Description static OggPagecreate(byte[] source)static OggPagecreate(byte[] source, boolean skipData)static OggPagecreate(java.io.InputStream source)static OggPagecreate(java.io.InputStream source, boolean skipData)static OggPagecreate(java.io.RandomAccessFile source)static OggPagecreate(java.io.RandomAccessFile source, boolean skipData)longgetAbsoluteGranulePosition()byte[]getData()byte[]getHeader()intgetPageCheckSum()intgetPageSequenceNumber()int[]getSegmentLengths()int[]getSegmentOffsets()byte[]getSegmentTable()intgetStreamSerialNumber()intgetTotalLength()booleanisBos()booleanisContinued()booleanisEos()booleanisFresh()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OggPage
protected OggPage()
-
-
Method Details
-
create
public static OggPage create(java.io.RandomAccessFile source) throws java.io.IOException, EndOfOggStreamException, OggFormatException- Throws:
java.io.IOExceptionEndOfOggStreamExceptionOggFormatException
-
create
public static OggPage create(java.io.RandomAccessFile source, boolean skipData) throws java.io.IOException, EndOfOggStreamException, OggFormatException- Throws:
java.io.IOExceptionEndOfOggStreamExceptionOggFormatException
-
create
public static OggPage create(java.io.InputStream source) throws java.io.IOException, EndOfOggStreamException, OggFormatException- Throws:
java.io.IOExceptionEndOfOggStreamExceptionOggFormatException
-
create
public static OggPage create(java.io.InputStream source, boolean skipData) throws java.io.IOException, EndOfOggStreamException, OggFormatException- Throws:
java.io.IOExceptionEndOfOggStreamExceptionOggFormatException
-
create
public static OggPage create(byte[] source) throws java.io.IOException, EndOfOggStreamException, OggFormatException- Throws:
java.io.IOExceptionEndOfOggStreamExceptionOggFormatException
-
create
public static OggPage create(byte[] source, boolean skipData) throws java.io.IOException, EndOfOggStreamException, OggFormatException- Throws:
java.io.IOExceptionEndOfOggStreamExceptionOggFormatException
-
getAbsoluteGranulePosition
public long getAbsoluteGranulePosition() -
getStreamSerialNumber
public int getStreamSerialNumber() -
getPageSequenceNumber
public int getPageSequenceNumber() -
getPageCheckSum
public int getPageCheckSum() -
getTotalLength
public int getTotalLength() -
getData
public byte[] getData() -
getHeader
public byte[] getHeader() -
getSegmentTable
public byte[] getSegmentTable() -
getSegmentOffsets
public int[] getSegmentOffsets() -
getSegmentLengths
public int[] getSegmentLengths() -
isContinued
public boolean isContinued() -
isFresh
public boolean isFresh() -
isBos
public boolean isBos() -
isEos
public boolean isEos()
-