FileDocCategorySizeDatePackage
ContainerBox.javaAPI Docmp4parser 1.0-RC-172239Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes

ContainerBox

public interface ContainerBox implements Box
Interface for all ISO boxes that may contain other boxes.

Fields Summary
Constructors Summary
Methods Summary
public java.util.ListgetBoxes()
Gets all child boxes. May not return null.

return
an array of boxes, empty array in case of no children.

public java.util.ListgetBoxes(java.lang.Class clazz)
Gets all child boxes of the given type. May not return null.

param
clazz child box's type
return
an array of boxes, empty array in case of no children.

public java.util.ListgetBoxes(java.lang.Class clazz, boolean recursive)
Gets all child boxes of the given type. May not return null.

param
clazz child box's type
param
recursive step down the tree
return
an array of boxes, empty array in case of no children.

public com.coremedia.iso.IsoFilegetIsoFile()

public longgetNumOfBytesToFirstChild()
Returns the number of bytes from the start of the box to start of the first child.

return
offset of first child from box start

public com.coremedia.iso.boxes.ContainerBoxgetParent()
Gets the parent box. May be null in case of the {@link com.coremedia.iso.IsoFile} itself.

return
a ContainerBox that contains this

public voidsetBoxes(java.util.List boxes)
Sets all boxes and removes all previous child boxes.

param
boxes the new list of children