Package org.mp4parser
Class BasicContainer
java.lang.Object
org.mp4parser.BasicContainer
- All Implemented Interfaces:
Container
- Direct Known Subclasses:
AbstractContainerBox,IsoFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddboxto the container and sets the parent correctly.getBoxes()Gets all child boxes.Gets all child boxes of the given type.Gets all child boxes of the given type.protected longvoidinitContainer(ReadableByteChannel readableByteChannel, long containerSize, BoxParser boxParser) voidSets all boxes and removes all previous child boxes.toString()final void
-
Constructor Details
-
BasicContainer
public BasicContainer() -
BasicContainer
-
-
Method Details
-
getBoxes
Description copied from interface:ContainerGets all child boxes. May not returnnull. -
setBoxes
Description copied from interface:ContainerSets all boxes and removes all previous child boxes. -
getContainerSize
protected long getContainerSize() -
getBoxes
Description copied from interface:ContainerGets all child boxes of the given type. May not returnnull. -
getBoxes
Description copied from interface:ContainerGets all child boxes of the given type. May not returnnull. -
addBox
Addboxto the container and sets the parent correctly. Ifboxisnullnochange will be performed and no error thrown.- Parameters:
box- will be added to the container
-
initContainer
public void initContainer(ReadableByteChannel readableByteChannel, long containerSize, BoxParser boxParser) throws IOException - Throws:
IOException
-
toString
-
writeContainer
- Specified by:
writeContainerin interfaceContainer- Throws:
IOException
-