Package org.mp4parser

Class AbstractBoxParser

  • All Implemented Interfaces:
    BoxParser
    Direct Known Subclasses:
    PropertyBoxParserImpl

    public abstract class AbstractBoxParser
    extends Object
    implements BoxParser
    This BoxParser handles the basic stuff like reading size and extracting box type.
    • Constructor Detail

      • AbstractBoxParser

        public AbstractBoxParser()
    • Method Detail

      • parseBox

        public ParsableBox parseBox​(ReadableByteChannel byteChannel,
                                    String parentType)
                             throws IOException
        Parses the next size and type, creates a box instance and parses the box's content.
        Specified by:
        parseBox in interface BoxParser
        Parameters:
        byteChannel - the DataSource pointing to the ISO file
        parentType - the current box's parent's type (null if no parent)
        Returns:
        the box just parsed
        Throws:
        IOException - if reading from in fails