|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcodec.containers.mkv.Reader
public class Reader
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 FileChannel |
ds
|
static long[] |
signedComplement
|
| Constructor Summary | |
|---|---|
Reader(FileChannel source)
Creates a new EBMLReader reading from the DataSource
source. |
|
| Method Summary | |
|---|---|
static String |
asHex(int i)
|
static String |
bytesToHex(byte[] bts)
|
static long |
bytesToLong(byte[] data)
|
static long |
bytesToLong(ByteBuffer data)
|
long |
getAvailable()
|
static byte[] |
getEbmlBytes(FileChannel source)
|
static int |
getEbmlSizeByFirstByte(byte b)
|
static long |
getEbmlVInt(ByteBuffer bb)
Reads an (Unsigned) EBML code from the DataSource and encodes it into a long. |
static long |
getEbmlVInt(ByteBuffer source,
int offset)
Reads an (Unsigned) EBML code from the DataSource and encodes it into a long. |
static long |
getEbmlVInt(FileChannel source)
Reads an (Unsigned) EBML code from the DataSource and encodes it into a long. |
long |
getPos()
|
static byte[] |
getRawEbmlBytes(FileChannel source)
Reads an EBML id from the DataSource. |
static long |
getSignedEbmlVInt(ByteBuffer source)
Reads an Signed EBML code from the DataSource and encodes it into a long. |
static long |
getSignedEbmlVInt(FileChannel is)
Reads an Signed EBML code from the DataSource and encodes it into a long. |
static byte[] |
getVIntEbmlBytes(ByteBuffer source)
|
static String |
printAsHex(byte[] a)
|
Element |
readNextElement()
|
Element |
readNextFirstLevelElement()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FileChannel ds
public static final long[] signedComplement
| Constructor Detail |
|---|
public Reader(FileChannel source)
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 docment| Method Detail |
|---|
public long getPos()
throws IOException
IOException
public long getAvailable()
throws IOException
IOExceptionpublic static String bytesToHex(byte[] bts)
public static String printAsHex(byte[] a)
public Element readNextElement()
throws IOException
IOException
public static long getEbmlVInt(FileChannel source)
throws IOException
IOException
public static long getSignedEbmlVInt(FileChannel is)
throws IOException
IOExceptionpublic static long bytesToLong(ByteBuffer data)
public static long bytesToLong(byte[] data)
public static int getEbmlSizeByFirstByte(byte b)
public static long getEbmlVInt(ByteBuffer bb)
public static long getEbmlVInt(ByteBuffer source,
int offset)
public static String asHex(int i)
public static long getSignedEbmlVInt(ByteBuffer source)
public static byte[] getVIntEbmlBytes(ByteBuffer source)
public static byte[] getEbmlBytes(FileChannel source)
throws IOException
IOException
public static byte[] getRawEbmlBytes(FileChannel source)
throws IOException
IOException
public Element readNextFirstLevelElement()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||