Package org.mp4parser
Interface Container
- All Known Subinterfaces:
SampleEntry
- All Known Implementing Classes:
AbstractContainerBox,AbstractSampleEntry,ActionMessageFormat0SampleEntryBox,AppleItemListBox,AppleReferenceMovieBox,AppleReferenceMovieDescriptorBox,AppleWaveBox,AudioSampleEntry,BasicContainer,DataInformationBox,DataReferenceBox,DfxpSampleEntry,EditBox,FullContainerBox,GenericMediaHeaderAtom,HintSampleEntry,IsoFile,ItemProtectionBox,MediaBox,MediaInformationBox,MetaBox,MovieBox,MovieExtendsBox,MovieFragmentBox,MovieFragmentRandomAccessBox,MpegSampleEntry,Ovc1VisualSampleEntryImpl,ProtectionSchemeInformationBox,QuicktimeTextSampleEntry,SampleDescriptionBox,SampleTableBox,SchemeInformationBox,TextSampleEntry,TimeCodeBox,TrackApertureModeDimensionAtom,TrackBox,TrackFragmentBox,TrackReferenceBox,UserDataBox,VisualSampleEntry,WebVTTSampleEntry,XMLSubtitleSampleEntry
public interface Container
Interface for all ISO boxes that may contain other boxes.
-
Method Summary
Modifier and TypeMethodDescriptiongetBoxes()Gets all child boxes.Gets all child boxes of the given type.Gets all child boxes of the given type.voidSets all boxes and removes all previous child boxes.void
-
Method Details
-
getBoxes
Gets all child boxes. May not returnnull.- Returns:
- an array of boxes, empty array in case of no children.
-
setBoxes
Sets all boxes and removes all previous child boxes.- Parameters:
boxes- the new list of children
-
getBoxes
Gets all child boxes of the given type. May not returnnull.- Type Parameters:
T- type of boxes to get- Parameters:
clazz- child box's type- Returns:
- an array of boxes, empty array in case of no children.
-
getBoxes
Gets all child boxes of the given type. May not returnnull.- Type Parameters:
T- type of boxes to get- Parameters:
clazz- child box's typerecursive- step down the tree- Returns:
- an array of boxes, empty array in case of no children.
-
writeContainer
- Throws:
IOException
-