com.sun.tools.xjc.reader.internalizer
Class DOMForestParser

java.lang.Object
  extended by com.sun.tools.xjc.reader.internalizer.DOMForestParser
All Implemented Interfaces:
com.sun.xml.xsom.parser.XMLParser

 class DOMForestParser
extends java.lang.Object
implements com.sun.xml.xsom.parser.XMLParser

XMLParser implementation that parses XML from a DOM forest instead of parsing it from its original location.


Constructor Summary
DOMForestParser(DOMForest forest, com.sun.xml.xsom.parser.XMLParser fallbackParser)
           
 
Method Summary
 void parse(org.xml.sax.InputSource source, org.xml.sax.ContentHandler contentHandler, org.xml.sax.ErrorHandler errorHandler, org.xml.sax.EntityResolver entityResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMForestParser

DOMForestParser(DOMForest forest,
                com.sun.xml.xsom.parser.XMLParser fallbackParser)
Parameters:
fallbackParser - This parser will be used when DOMForestParser needs to parse documents that are not in the forest.
Method Detail

parse

public void parse(org.xml.sax.InputSource source,
                  org.xml.sax.ContentHandler contentHandler,
                  org.xml.sax.ErrorHandler errorHandler,
                  org.xml.sax.EntityResolver entityResolver)
           throws org.xml.sax.SAXException,
                  java.io.IOException
Specified by:
parse in interface com.sun.xml.xsom.parser.XMLParser
Throws:
org.xml.sax.SAXException
java.io.IOException