|
||||||||||
| 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.sampleentry.SampleEntry
public abstract class SampleEntry
Abstract base class for all sample entries.
AudioSampleEntry,
VisualSampleEntry,
TextSampleEntry| Field Summary | |
|---|---|
protected java.util.List<Box> |
boxes
|
| Fields inherited from class com.coremedia.iso.boxes.AbstractBox |
|---|
deadBytes, type |
| Constructor Summary | |
|---|---|
protected |
SampleEntry(java.lang.String type)
|
| Method Summary | ||
|---|---|---|
void |
_parseChildBoxes(java.nio.ByteBuffer content)
|
|
void |
_parseReservedAndDataReferenceIndex(java.nio.ByteBuffer content)
|
|
void |
_writeChildBoxes(java.nio.ByteBuffer bb)
|
|
void |
_writeReservedAndDataReferenceIndex(java.nio.ByteBuffer bb)
|
|
void |
addBox(AbstractBox b)
|
|
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. |
|
int |
getDataReferenceIndex()
|
|
long |
getNumOfBytesToFirstChild()
Returns the number of bytes from the start of the box to start of the first child. |
|
void |
parse(java.nio.channels.ReadableByteChannel in,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
Pareses the given IsoBufferWrapper and returns the remaining bytes. |
|
boolean |
removeBox(Box b)
|
|
void |
setBoxes(java.util.List<Box> boxes)
Sets all boxes and removes all previous child boxes. |
|
void |
setDataReferenceIndex(int dataReferenceIndex)
|
|
void |
setType(java.lang.String type)
|
|
| Methods inherited from class com.coremedia.iso.boxes.AbstractBox |
|---|
_parseDetails, getBox, getContent, getContentSize, getDeadBytes, getHeader, getIsoFile, getParent, getSize, getType, getUserType, isParsed, parseDetails, setDeadBytes, setParent, setUserType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, setParent |
| Field Detail |
|---|
protected java.util.List<Box> boxes
| Constructor Detail |
|---|
protected SampleEntry(java.lang.String type)
| Method Detail |
|---|
public void setType(java.lang.String type)
public int getDataReferenceIndex()
public void setDataReferenceIndex(int dataReferenceIndex)
public void setBoxes(java.util.List<Box> boxes)
ContainerBox
setBoxes in interface ContainerBoxboxes - the new list of childrenpublic void addBox(AbstractBox b)
public boolean removeBox(Box b)
public java.util.List<Box> getBoxes()
ContainerBoxnull.
getBoxes in interface ContainerBox
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 <T extends Box> java.util.List<T> getBoxes(java.lang.Class<T> clazz)
ContainerBoxnull.
getBoxes in interface ContainerBoxclazz - child box's type
public void parse(java.nio.channels.ReadableByteChannel in,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
throws java.io.IOException
AbstractBox
parse in interface Boxparse in class AbstractBoxin - the (part of the) iso file to parsecontentSize - expected contentSize of the boxboxParser - creates inner boxes
java.io.IOException - in case of an I/O error.public void _parseReservedAndDataReferenceIndex(java.nio.ByteBuffer content)
public void _parseChildBoxes(java.nio.ByteBuffer content)
public void _writeReservedAndDataReferenceIndex(java.nio.ByteBuffer bb)
public void _writeChildBoxes(java.nio.ByteBuffer bb)
throws java.io.IOException
java.io.IOExceptionpublic long getNumOfBytesToFirstChild()
ContainerBox
getNumOfBytesToFirstChild in interface ContainerBox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||