com.coremedia.iso
Class AbstractBoxParser

java.lang.Object
  extended by 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.


Constructor Summary
AbstractBoxParser()
           
 
Method Summary
abstract  Box createBox(String type, byte[] userType, String parent)
           
 Box parseBox(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
 
Methods inherited from interface com.coremedia.iso.BoxParser
getClassForFourCc
 

Constructor Detail

AbstractBoxParser

public AbstractBoxParser()
Method Detail

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 file
parent - 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.