Package org.mp4parser

Interface Container

    • Method Detail

      • 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 BoxList<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 BoxList<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.