|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ext.mediamanager.ebml.Element
Defines the basic EBML element. Subclasses may provide child element access.
Field Summary | |
protected byte[] |
data
|
protected boolean |
dataRead
|
protected Element |
parent
|
protected long |
size
|
protected byte[] |
type
|
protected ElementType |
typeInfo
|
Constructor Summary | |
Element(byte[] type)
Creates a new instance of Element |
Method Summary | |
static int |
codedSizeLength(long value)
|
static int |
EBMLCodedSizeLength(long value)
|
static int |
EBMLSignedCodedSizeLength(long value)
|
boolean |
equals(byte[] typeId)
|
boolean |
equals(ElementType elemType)
|
byte[] |
getData()
Getter for property data. |
ElementType |
getElementType()
|
static int |
getMinByteSize(long value)
|
static int |
getMinByteSizeUnsigned(long value)
|
static int |
getMinSizeLength()
|
Element |
getParent()
Getter for property parent. |
long |
getSize()
Getter for property size. |
byte[] |
getType()
Getter for property type. |
static byte[] |
makeEbmlCode(byte[] typeID,
long size)
|
static byte[] |
makeEbmlCodedSize(long size)
|
static byte[] |
packInt(long value)
|
static byte[] |
packIntUnsigned(long value)
|
void |
readData(DataSource source)
|
void |
setData(byte[] data)
Setter for property data. |
void |
setElementType(ElementType typeInfo)
|
static void |
setMinSizeLength(int minSize)
|
void |
setParent(Element parent)
Setter for property parent. |
void |
setSize(long size)
Setter for property size. |
void |
setType(byte[] type)
Setter for property type. |
void |
skipData(DataSource source)
|
byte[] |
toByteArray()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Element parent
protected ElementType typeInfo
protected byte[] type
protected long size
protected byte[] data
protected boolean dataRead
Constructor Detail |
public Element(byte[] type)
Method Detail |
public void readData(DataSource source)
public void skipData(DataSource source)
public byte[] getData()
public void setData(byte[] data)
data
- New value of property data.public long getSize()
public void setSize(long size)
size
- New value of property size.public byte[] getType()
public void setType(byte[] type)
type
- New value of property type.public void setElementType(ElementType typeInfo)
public ElementType getElementType()
public Element getParent()
public void setParent(Element parent)
parent
- New value of property parent.public byte[] toByteArray()
public boolean equals(byte[] typeId)
public boolean equals(ElementType elemType)
public static void setMinSizeLength(int minSize)
public static int getMinSizeLength()
public static byte[] makeEbmlCode(byte[] typeID, long size)
public static byte[] makeEbmlCodedSize(long size)
public static int getMinByteSize(long value)
public static int getMinByteSizeUnsigned(long value)
public static int codedSizeLength(long value)
public static int EBMLCodedSizeLength(long value)
public static int EBMLSignedCodedSizeLength(long value)
public static byte[] packIntUnsigned(long value)
public static byte[] packInt(long value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |