|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ext.mediamanager.ebml.EBMLReader
The following are the basic steps of how reading in JEBML works.
Element level1;
// ... fill level1
if (level1.equals(MatroskaDocType.SegmentInfo_Id)) {
// Your Code Here
}
DataSource
and looks them up in the
provided DocType
.
Field Summary | |
protected DocType |
doc
|
protected ElementType |
elementTypes
|
protected ElementType |
lastElementType
|
protected DataSource |
source
|
Constructor Summary | |
EBMLReader(DataSource source,
DocType doc)
Creates a new EBMLReader reading from the DataSource
source . |
Method Summary | |
static long |
readEBMLCode(DataSource source)
Reads an (Unsigned) EBML code from the DataSource and encodes it into a long. |
static byte[] |
readEBMLCodeAsBytes(DataSource source)
Reads an EBML code from the DataSource. |
Element |
readNextElement()
|
static long |
readSignedEBMLCode(DataSource source)
Reads an Signed EBML code from the DataSource and encodes it into a long. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DataSource source
protected DocType doc
protected ElementType elementTypes
protected ElementType lastElementType
Constructor Detail |
public EBMLReader(DataSource source, DocType doc)
EBMLReader
reading from the DataSource
source
. The DocType doc
is used to validate the
document.
source
- DataSource to read fromdoc
- DocType to use to validate the docmentMethod Detail |
public Element readNextElement()
public static long readEBMLCode(DataSource source)
public static long readSignedEBMLCode(DataSource source)
public static byte[] readEBMLCodeAsBytes(DataSource source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |