Package org.mp4parser

Class AbstractBoxParser

java.lang.Object
org.mp4parser.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 Details

    • AbstractBoxParser

      public AbstractBoxParser()
  • Method Details

    • createBox

      public abstract ParsableBox createBox(String type, byte[] userType, String parent)
    • 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
    • skippingBoxes

      public AbstractBoxParser skippingBoxes(String... types)