|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gagravarr.ogg.OggPacketData
org.gagravarr.ogg.OggPacket
public class OggPacket
Represents a logical group of data. RFC3533 suggests that these should usually be around 50-200 bytes long.
Constructor Summary | |
---|---|
|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.gagravarr.ogg.OggPacketData |
---|
getData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected OggPacket(OggPage parent, byte[] data, boolean bos, boolean eos)
public OggPacket(byte[] data)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |