|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcodec.containers.mkv.ebml.Element
public class Element
Defines the basic EBML element. Subclasses may provide child element access.
| Field Summary | |
|---|---|
protected ByteBuffer |
data
|
long |
dataOffset
|
protected boolean |
dataRead
|
byte[] |
id
|
long |
offset
|
protected Element |
parent
|
long |
size
|
Type |
type
|
| Constructor Summary | |
|---|---|
Element(byte[] type)
Creates a new instance of Element |
|
| Method Summary | |
|---|---|
static byte[] |
ebmlBytes(long value)
|
static byte[] |
ebmlBytes(long val,
int num)
|
static int |
getEbmlSize(long v)
|
byte[] |
getId()
Getter for property type. |
long |
getSize()
Get the total size of this element |
boolean |
isSameEbmlId(byte[] typeId)
|
boolean |
isSameMatroskaType(Type elemType)
|
ByteBuffer |
mux()
|
long |
mux(FileChannel os)
|
void |
readData(FileChannel source)
Read the element data |
void |
setParent(Element parent)
Setter for property parent. |
void |
skipData(FileChannel source)
Skip the element data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Element parent
public Type type
public byte[] id
public long size
protected ByteBuffer data
protected boolean dataRead
public long offset
public long dataOffset
| Constructor Detail |
|---|
public Element(byte[] type)
| Method Detail |
|---|
public void readData(FileChannel source)
throws IOException
IOException
public void skipData(FileChannel source)
throws IOException
IOExceptionpublic long getSize()
public byte[] getId()
public void setParent(Element parent)
parent - New value of property parent.public boolean isSameEbmlId(byte[] typeId)
public boolean isSameMatroskaType(Type elemType)
public long mux(FileChannel os)
throws IOException
IOExceptionpublic ByteBuffer mux()
public static byte[] ebmlBytes(long value)
public static byte[] ebmlBytes(long val,
int num)
public static int getEbmlSize(long v)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||