|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.coremedia.iso.boxes.AbstractBox
com.coremedia.iso.boxes.apple.AbstractAppleMetaDataBox
public abstract class AbstractAppleMetaDataBox
Field Summary |
---|
Fields inherited from class com.coremedia.iso.boxes.AbstractBox |
---|
deadBytes, type |
Constructor Summary | |
---|---|
AbstractAppleMetaDataBox(String type)
|
Method Summary | ||
---|---|---|
void |
_parseDetails(ByteBuffer content)
Implement the actual parsing of the box's fields here. |
|
List<Box> |
getBoxes()
Gets all child boxes. |
|
|
getBoxes(Class<T> clazz)
Gets all child boxes of the given type. |
|
|
getBoxes(Class<T> clazz,
boolean recursive)
Gets all child boxes of the given type. |
|
protected void |
getContent(ByteBuffer os)
Writes the box's content into the given ByteBuffer . |
|
protected long |
getContentSize()
Gets the box's content size. |
|
long |
getNumOfBytesToFirstChild()
Returns the number of bytes from the start of the box to start of the first child. |
|
String |
getValue()
|
|
static byte[] |
hexStringToByteArray(String s)
|
|
void |
setBoxes(List<Box> boxes)
Sets all boxes and removes all previous child boxes. |
|
void |
setValue(String value)
|
|
String |
toString()
|
Methods inherited from class com.coremedia.iso.boxes.AbstractBox |
---|
getBox, getDeadBytes, getHeader, getIsoFile, getParent, getSize, getType, getUserType, isParsed, parse, parseDetails, setDeadBytes, setParent, setUserType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.coremedia.iso.boxes.ContainerBox |
---|
getIsoFile, getParent |
Methods inherited from interface com.coremedia.iso.boxes.Box |
---|
getBox, getSize, getType, parse, setParent |
Constructor Detail |
---|
public AbstractAppleMetaDataBox(String type)
Method Detail |
---|
public List<Box> getBoxes()
ContainerBox
null
.
getBoxes
in interface ContainerBox
public void setBoxes(List<Box> boxes)
ContainerBox
setBoxes
in interface ContainerBox
boxes
- the new list of childrenpublic <T extends Box> List<T> getBoxes(Class<T> clazz)
ContainerBox
null
.
getBoxes
in interface ContainerBox
clazz
- child box's type
public <T extends Box> List<T> getBoxes(Class<T> clazz, boolean recursive)
ContainerBox
null
.
getBoxes
in interface ContainerBox
clazz
- child box's typerecursive
- step down the tree
public void _parseDetails(ByteBuffer content)
AbstractBox
AbstractBox.parseDetails()
which encapsulates the call to this method with some safeguards.
_parseDetails
in class AbstractBox
protected long getContentSize()
AbstractBox
getContentSize
in class AbstractBox
protected void getContent(ByteBuffer os) throws IOException
AbstractBox
ByteBuffer
. This must include flags
and version in case of a full box. bb
has been initialized with
getSize()
bytes.
getContent
in class AbstractBox
os
- the box's content-sink.
IOException
- in case of an exception in the underlying OutputStream
.public long getNumOfBytesToFirstChild()
ContainerBox
getNumOfBytesToFirstChild
in interface ContainerBox
public String toString()
toString
in class Object
public void setValue(String value)
public String getValue()
public static byte[] hexStringToByteArray(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |