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 java.lang.Object
- implements BoxParser
This BoxParser handles the basic stuff like reading size and extracting box type.
Method Summary |
abstract Box |
createBox(java.lang.String type,
byte[] userType,
java.lang.String parent)
|
Box |
parseBox(java.nio.channels.ReadableByteChannel byteChannel,
ContainerBox parent)
Parses the next size and type, creates a box instance and parses the box's content. |
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(java.lang.String type,
byte[] userType,
java.lang.String parent)
parseBox
public Box parseBox(java.nio.channels.ReadableByteChannel byteChannel,
ContainerBox parent)
throws java.io.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:
java.io.IOException
- if reading from in
fails
Copyright © 2012. All Rights Reserved.