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 Details

    • getBoxes

      List<Box> getBoxes()
      Gets all child boxes. May not return null.
      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 return null.
      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 return null.
      Type Parameters:
      T - type of boxes to get
      Parameters:
      clazz - child box's type
      recursive - 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