public class OggPacket extends OggPacketData
Modifier | Constructor and Description |
---|---|
|
OggPacket(byte[] data)
Creates a new Ogg Packet filled with data to
be later written.
|
protected |
OggPacket(OggPage parent,
byte[] data,
boolean bos,
boolean eos)
Creates a new Ogg Packet based on data read
from within an Ogg Page.
|
Modifier and Type | Method and Description |
---|---|
protected OggPage |
_getParent()
Unit tests only!
|
long |
getGranulePosition()
Returns the granule position of the page
that this packet belongs to.
|
int |
getSequenceNumber()
Returns the sequence number within the stream
of the page that this packet belongs to.
|
int |
getSid()
Returns the Stream ID (Sid) that
this packet belongs to.
|
boolean |
isBeginningOfStream()
Is this the first packet in the stream?
If so, the data should hold the magic
information required to identify which
decoder will be needed.
|
boolean |
isEndOfStream()
Is this the last packet in the stream?
|
protected void |
setIsBOS() |
protected void |
setIsEOS() |
protected void |
setParent(OggPage parent) |
getData
protected OggPacket(OggPage parent, byte[] data, boolean bos, boolean eos)
public OggPacket(byte[] data)
protected void setParent(OggPage parent)
protected void setIsBOS()
protected void setIsEOS()
protected OggPage _getParent()
public int getSid()
public long getGranulePosition()
public int getSequenceNumber()
public boolean isBeginningOfStream()
public boolean isEndOfStream()
Copyright © 2015. All rights reserved.