Class OggPageHeader


  • public class OggPageHeader
    extends java.lang.Object
    Header of an OGG stream page.
    • Constructor Summary

      Constructors 
      Constructor Description
      OggPageHeader​(int flags, long absolutePosition, int streamIdentifier, int pageSequence, int checksum, int segmentCount, long byteStreamPosition)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isContinuation

        public final boolean isContinuation
        If this page starts in the middle of a packet that was left incomplete in the previous page.
      • isFirstPage

        public final boolean isFirstPage
        If this is the first page of the track.
      • isLastPage

        public final boolean isLastPage
        If this is the last page of the track.
      • absolutePosition

        public final long absolutePosition
        The absolute position in the number of samples of this packet relative to the track start.
      • streamIdentifier

        public final int streamIdentifier
        Unique identifier of this track in the stream.
      • pageSequence

        public final int pageSequence
        The index of the page within a track.
      • pageChecksum

        public final int pageChecksum
        The checksum of the page.
      • segmentCount

        public final int segmentCount
        Number of segments in the page.
      • byteStreamPosition

        public final long byteStreamPosition
        The absolute position of the start of this page in the underlying bytestream.
    • Constructor Detail

      • OggPageHeader

        public OggPageHeader​(int flags,
                             long absolutePosition,
                             int streamIdentifier,
                             int pageSequence,
                             int checksum,
                             int segmentCount,
                             long byteStreamPosition)
        Parameters:
        flags - Page flags.
        absolutePosition - The absolute position in the number of samples of this packet relative to the track start.
        streamIdentifier - Unique identifier of this track in the stream.
        pageSequence - The index of the page within a track.
        checksum - The checksum of the page.
        segmentCount - Number of segments in the page.
        byteStreamPosition - The absolute position in bytes of this page in the stream.