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 Summary
Constructors Constructor Description AbstractBoxParser()
-
Method Summary
Modifier and Type Method Description abstract ParsableBoxcreateBox(String type, byte[] userType, String parent)ParsableBoxparseBox(ReadableByteChannel byteChannel, String parentType)Parses the next size and type, creates a box instance and parses the box's content.AbstractBoxParserskippingBoxes(String... types)
-
-
-
Method Detail
-
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:
parseBoxin interfaceBoxParser- Parameters:
byteChannel- the DataSource pointing to the ISO fileparentType- the current box's parent's type (null if no parent)- Returns:
- the box just parsed
- Throws:
IOException- if reading frominfails
-
skippingBoxes
public AbstractBoxParser skippingBoxes(String... types)
-
-