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 ContainerInterface for all ISO boxes that may contain other boxes.
-
-
Method Summary
Modifier and Type Method Description List<Box>getBoxes()Gets all child boxes.<T extends Box>
List<T>getBoxes(Class<T> clazz)Gets all child boxes of the given type.<T extends Box>
List<T>getBoxes(Class<T> clazz, boolean recursive)Gets all child boxes of the given type.voidsetBoxes(List<? extends Box> boxes)Sets all boxes and removes all previous child boxes.voidwriteContainer(WritableByteChannel bb)
-
-
-
Method Detail
-
getBoxes
List<Box> getBoxes()
Gets all child boxes. May not returnnull.- Returns:
- an array of boxes, empty array in case of no children.
-
setBoxes
void setBoxes(List<? extends Box> boxes)
Sets all boxes and removes all previous child boxes.- Parameters:
boxes- the new list of children
-
getBoxes
<T extends Box> List<T> getBoxes(Class<T> clazz)
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
<T extends Box> List<T> getBoxes(Class<T> clazz, boolean recursive)
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
void writeContainer(WritableByteChannel bb) throws IOException
- Throws:
IOException
-
-