com.coremedia.iso
Class AbstractBoxParser
java.lang.Object
com.coremedia.iso.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBoxParser
public AbstractBoxParser()
createBox
public abstract Box createBox(String type,
byte[] userType,
String parent)
parseBox
public Box parseBox(ReadableByteChannel byteChannel,
ContainerBox parent)
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 FileChannel pointing to the ISO fileparent
- the current box's parent (null if no parent)
- Returns:
- the box just parsed
- Throws:
IOException
- if reading from in
fails
Copyright © 2012. All Rights Reserved.