Maven module :un.storage : binding-ebml :
Class : un.storage.binding.ebml.EBMLDecoder
Extends/Implements : -
Subclasses : -

EBML decoder, utility class
Specification :
http://www.matroska.org/technical/specs/rfc/index.html
author  Johann Sorel


Variables : types, ds
Functions : EBMLDecoder, peekId, consumeId, readInt, readUInt, readString, readVarInt, readBinary, isChunk, createChunk


Dictionary types

public DataInputStream ds


public void EBMLDecoder ()


Get the next id, but does not discard it until a consume is called.
This allow readers to check the id, read it if they can or pass it back to the parent
reader.
Since EBML does not have element end flags this allows us to avoid rewind the stream.
return
throws  IOException
public long peekId ()


Consume this id.
public void consumeId ()


Read next as a variable size integer.
return  long
public long readInt ()


Read next as a variable size unsigned integer.
return  long
public long readUInt ()

public Chars readString ()


Read next as a variable size integer.
return  long
public int readVarInt ()

public byte[] readBinary ()

public boolean isChunk (int id)

public EBMLChunk createChunk (int id)