public interface Box
Modifier and Type | Method and Description |
---|---|
Box |
getChild(long type)
Returns the child box with the specified type.
|
java.util.List<Box> |
getChildren()
Returns an ordered and unmodifiable list of all direct children of this
box.
|
java.util.List<Box> |
getChildren(long type)
Returns an ordered and unmodifiable list of all direct children of this
box with the specified type.
|
java.lang.String |
getName()
Returns the name of this box as a human-readable string
(e.g.
|
long |
getOffset()
Returns the offset of this box in the stream/file.
|
Box |
getParent() |
long |
getSize()
Returns the size of this box including its header.
|
long |
getType()
Returns the type of this box as a 4CC converted to a long.
|
boolean |
hasChild(long type)
Indicated if the box has a child with the given type.
|
boolean |
hasChildren()
Indicates if this box has children.
|
Box getParent()
long getSize()
long getType()
long getOffset()
java.lang.String getName()
boolean hasChildren()
boolean hasChild(long type)
type
- the type of child box to look forjava.util.List<Box> getChildren()
java.util.List<Box> getChildren(long type)
type
- the type of child boxes to look forBox getChild(long type)
hasChild(type)
can be used.
If more than one child exists with the same type, the first one will
always be returned. A list of all children with that type can be received
via getChildren(type)
.type
- the type of child box to look for