Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.internalizer

pack-priv Class DOMForestParser

extends Object
implements XMLParser
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.parser.XMLParser
Imports
java.io.IOException, com.sun.xml.xsom.parser.XMLParser, org.w3c.dom.Document, org.xml.sax.ContentHandler, .EntityResolver, .ErrorHandler, .InputSource, .SAXException

XMLParser implementation that parses XML from a DOM forest instead of parsing it from its original location.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final XMLParser
private final DOMForest
forest

DOM forest to be "parsed".

private final DOMForestScanner
scanner

Scanner object will do the actual SAX events generation.

Constructor Summary

AccessConstructor and Description
pack-priv
DOMForestParser(DOMForest forest, XMLParser
This parser will be used when DOMForestParser needs to parse documents that are not in the forest.
fallbackParser
)

Method Summary

Modifier and TypeMethod and Description
public void
parse(InputSource source, ContentHandler contentHandler, ErrorHandler errorHandler, EntityResolver entityResolver)

Implements com.sun.xml.xsom.parser.XMLParser.parse.

Parses the document identified by the given input source and sends SAX events to the given content handler.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fallbackParserback to summary
private final XMLParser fallbackParser
forestback to summary
private final DOMForest forest

DOM forest to be "parsed".

scannerback to summary
private final DOMForestScanner scanner

Scanner object will do the actual SAX events generation.

Constructor Detail

DOMForestParserback to summary
pack-priv DOMForestParser(DOMForest forest, XMLParser fallbackParser)
Parameters
fallbackParser:XMLParser

This parser will be used when DOMForestParser needs to parse documents that are not in the forest.

Method Detail

parseback to summary
public void parse(InputSource source, ContentHandler contentHandler, ErrorHandler errorHandler, EntityResolver entityResolver) throws SAXException, IOException

Implements com.sun.xml.xsom.parser.XMLParser.parse.

Doc from com.sun.xml.xsom.parser.XMLParser.parse.

Parses the document identified by the given input source and sends SAX events to the given content handler.

This method must be re-entrant.

Annotations
@Override
Exceptions
SAXException:
If ErrorHandler throws a SAXException, this method will tunnel it to the caller. All the other errors must be reported to the error handler.