|
||||||||||
| 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(java.lang.String type)
|
|
| Method Summary | ||
|---|---|---|
void |
_parseDetails(java.nio.ByteBuffer content)
Implement the actual parsing of the box's fields here. |
|
java.util.List<Box> |
getBoxes()
Gets all child boxes. |
|
|
getBoxes(java.lang.Class<T> clazz)
Gets all child boxes of the given type. |
|
|
getBoxes(java.lang.Class<T> clazz,
boolean recursive)
Gets all child boxes of the given type. |
|
protected void |
getContent(java.nio.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. |
|
java.lang.String |
getValue()
|
|
static byte[] |
hexStringToByteArray(java.lang.String s)
|
|
void |
setBoxes(java.util.List<Box> boxes)
Sets all boxes and removes all previous child boxes. |
|
void |
setValue(java.lang.String value)
|
|
java.lang.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(java.lang.String type)
| Method Detail |
|---|
public java.util.List<Box> getBoxes()
ContainerBoxnull.
getBoxes in interface ContainerBoxpublic void setBoxes(java.util.List<Box> boxes)
ContainerBox
setBoxes in interface ContainerBoxboxes - the new list of childrenpublic <T extends Box> java.util.List<T> getBoxes(java.lang.Class<T> clazz)
ContainerBoxnull.
getBoxes in interface ContainerBoxclazz - child box's type
public <T extends Box> java.util.List<T> getBoxes(java.lang.Class<T> clazz,
boolean recursive)
ContainerBoxnull.
getBoxes in interface ContainerBoxclazz - child box's typerecursive - step down the tree
public void _parseDetails(java.nio.ByteBuffer content)
AbstractBoxAbstractBox.parseDetails() which encapsulates the call to this method with some safeguards.
_parseDetails in class AbstractBoxprotected long getContentSize()
AbstractBox
getContentSize in class AbstractBox
protected void getContent(java.nio.ByteBuffer os)
throws java.io.IOException
AbstractBoxByteBuffer. This must include flags
and version in case of a full box. bb has been initialized with
getSize() bytes.
getContent in class AbstractBoxos - the box's content-sink.
java.io.IOException - in case of an exception in the underlying OutputStream.public long getNumOfBytesToFirstChild()
ContainerBox
getNumOfBytesToFirstChild in interface ContainerBoxpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setValue(java.lang.String value)
public java.lang.String getValue()
public static byte[] hexStringToByteArray(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||