|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ext.mediamanager.ebml.Element
net.sf.ext.mediamanager.ebml.BinaryElement
public class BinaryElement
Defines the basic EBML element. Subclasses may provide child element access.
Field Summary |
---|
Fields inherited from class net.sf.ext.mediamanager.ebml.Element |
---|
data, dataRead, parent, size, type, typeInfo |
Constructor Summary | |
---|---|
BinaryElement(byte[] type)
|
Method Summary | |
---|---|
static int |
codedSizeLength(long value)
|
byte[] |
getData()
Getter for property data. |
static int |
getMinByteSize(long value)
|
static int |
getMinByteSizeUnsigned(long value)
|
static int |
getMinSizeLength()
|
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 |
setData(byte[] data)
Setter for property data. |
static void |
setMinSizeLength(int minSize)
|
void |
setSize(long size)
Setter for property size. |
void |
setType(byte[] type)
Setter for property type. |
byte[] |
toByteArray()
|
Methods inherited from class net.sf.ext.mediamanager.ebml.Element |
---|
EBMLCodedSizeLength, EBMLSignedCodedSizeLength, equals, equals, getElementType, getParent, readData, setElementType, setParent, skipData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryElement(byte[] type)
Method Detail |
---|
public byte[] getData()
getData
in class Element
public void setData(byte[] data)
setData
in class Element
data
- New value of property data.public long getSize()
getSize
in class Element
public void setSize(long size)
setSize
in class Element
size
- New value of property size.public byte[] getType()
getType
in class Element
public void setType(byte[] type)
setType
in class Element
type
- New value of property type.public byte[] toByteArray()
toByteArray
in class Element
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 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 |