org.jcodec.containers.mkv.ebml
Class MasterElement

java.lang.Object
  extended by org.jcodec.containers.mkv.ebml.Element
      extended by org.jcodec.containers.mkv.ebml.MasterElement
Direct Known Subclasses:
Attachments, Chapters, Cluster, CuePoint, EBML, Info, MatroskaCluster, SeekHead, Tags, TrackEntry, TrackEntryElement, Tracks

public class MasterElement
extends Element


Field Summary
 ArrayList<Element> children
           
protected  long usedSize
           
 
Fields inherited from class org.jcodec.containers.mkv.ebml.Element
data, dataOffset, dataRead, id, offset, parent, size, type
 
Constructor Summary
MasterElement(byte[] type)
           
 
Method Summary
 void addChildElement(Element elem)
           
 long getSize()
          Get the total size of this element
 ByteBuffer mux()
           
 long mux(FileChannel os)
           
 Element readNextChild(Reader reader)
           
 void skipData(FileChannel source)
          Skip the element data
 
Methods inherited from class org.jcodec.containers.mkv.ebml.Element
ebmlBytes, ebmlBytes, getEbmlSize, getId, isSameEbmlId, isSameMatroskaType, readData, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

usedSize

protected long usedSize

children

public final ArrayList<Element> children
Constructor Detail

MasterElement

public MasterElement(byte[] type)
Method Detail

readNextChild

public Element readNextChild(Reader reader)
                      throws IOException
Throws:
IOException

skipData

public void skipData(FileChannel source)
              throws IOException
Description copied from class: Element
Skip the element data

Overrides:
skipData in class Element
Throws:
IOException

addChildElement

public void addChildElement(Element elem)

mux

public long mux(FileChannel os)
         throws IOException
Overrides:
mux in class Element
Throws:
IOException

mux

public ByteBuffer mux()
Overrides:
mux in class Element

getSize

public long getSize()
Description copied from class: Element
Get the total size of this element

Overrides:
getSize in class Element


Copyright © 2013. All Rights Reserved.