Maven module :un.storage : binding-ebml :
Class : un.storage.binding.ebml.EBMLChunk
Extends/Implements : un.api.model.tree.DefaultNode
Subclasses : -

author  Johann Sorel


Variables : TYPE_INT, TYPE_UINT, TYPE_FLOAT, TYPE_STRING, TYPE_UTF8, TYPE_DATE, TYPE_BINARY, TYPE_SUB, properties
Functions : EBMLChunk, getId, setId, getSize, setSize, getProperties, getStructure, getPropertyUInt, getPropertyInt, getPropertyFloat, getPropertyString, getPropertiesString, getPropertyDate, getPropertyBinary, getSub, getSubs, read, readInternal, readProperty, getPropertyName, thisToChars


protected int TYPE_INT

protected int TYPE_UINT

protected int TYPE_FLOAT

protected int TYPE_STRING

protected int TYPE_UTF8

protected int TYPE_DATE

protected int TYPE_BINARY

protected int TYPE_SUB

protected Dictionary properties


public void EBMLChunk ()

public long getId ()

public void setId (long id)

public long getSize ()

public void setSize (long size)

public Dictionary getProperties ()


Define the structure of the chunk.
[dataId0 , type, dataId1, type, ....]
Type is one of TYPE_X constants
@return int[]
protected PropertyType[] getStructure ()

public Integer getPropertyUInt (int code, Integer def)

public Integer getPropertyInt (int code, Integer def)

public Float getPropertyFloat (int code, Float def)

public Chars getPropertyString (int code, Chars def)

public Sequence getPropertiesString (int code)

public Chars getPropertyDate (int code, Chars def)

public byte[] getPropertyBinary (int code, byte[] def)

public EBMLChunk getSub (int code)

public Sequence getSubs (int code)

public void read (EBMLDecoder decoder)

protected void readInternal (EBMLDecoder decoder)

protected void readProperty (EBMLDecoder decoder, int id)

public Chars getPropertyName (int id)

public Chars thisToChars ()