org.stanwood.media.store.mp4.atomicparsley
Class AtomicParsleyOutputParser

java.lang.Object
  extended by org.stanwood.media.xml.XMLParser
      extended by org.stanwood.media.store.mp4.atomicparsley.AtomicParsleyOutputParser

public class AtomicParsleyOutputParser
extends XMLParser

This class is used to parse the output from the atomic parsley command. The output is generated using the option --outputXML.


Field Summary
 
Fields inherited from class org.stanwood.media.xml.XMLParser
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
 
Constructor Summary
AtomicParsleyOutputParser(java.lang.String output)
          The constructor
 
Method Summary
 java.util.List<IAtom> listAtoms()
          Used to list the atoms parsed from the output
protected  int parseIntAttribute(org.w3c.dom.Element node, java.lang.String name, java.lang.String attributeName)
           
protected  long parseLongAttribute(org.w3c.dom.Element node, java.lang.String name, java.lang.String attributeName)
           
 
Methods inherited from class org.stanwood.media.xml.XMLParser
createDocBuilder, createFactory, deleteNode, domToStr, encodeAttributeValue, firstChild, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicParsleyOutputParser

public AtomicParsleyOutputParser(java.lang.String output)
                          throws MP4Exception
The constructor

Parameters:
output - The output XML of atomic parsley
Throws:
MP4Exception
Method Detail

listAtoms

public java.util.List<IAtom> listAtoms()
                                throws MP4Exception
Used to list the atoms parsed from the output

Returns:
List of atoms
Throws:
MP4Exception

parseIntAttribute

protected int parseIntAttribute(org.w3c.dom.Element node,
                                java.lang.String name,
                                java.lang.String attributeName)
                         throws MP4Exception
Throws:
MP4Exception

parseLongAttribute

protected long parseLongAttribute(org.w3c.dom.Element node,
                                  java.lang.String name,
                                  java.lang.String attributeName)
                           throws MP4Exception
Throws:
MP4Exception