com.sun.tools.ws.wsdl.parser
Class DOMForestParser

java.lang.Object
  extended by com.sun.tools.ws.wsdl.parser.DOMForestParser
All Implemented Interfaces:
XMLParser

public class DOMForestParser
extends Object
implements XMLParser

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

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com), Vivek Pandey

Constructor Summary
DOMForestParser(DOMForest forest, XMLParser fallbackParser)
           
 
Method Summary
 void parse(InputSource source, ContentHandler handler, EntityResolver entityResolver, ErrorHandler errHandler)
           
 void parse(InputSource source, ContentHandler handler, ErrorHandler errorHandler, EntityResolver entityResolver)
          Parses the document identified by the given input source and sends SAX events to the given content handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMForestParser

public DOMForestParser(DOMForest forest,
                       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(InputSource source,
                  ContentHandler handler,
                  EntityResolver entityResolver,
                  ErrorHandler errHandler)
           throws SAXException,
                  IOException
Throws:
SAXException
IOException

parse

public void parse(InputSource source,
                  ContentHandler handler,
                  ErrorHandler errorHandler,
                  EntityResolver entityResolver)
           throws SAXException,
                  IOException
Description copied from interface: XMLParser
Parses the document identified by the given input source and sends SAX events to the given content handler.

This method must be re-entrant.

Specified by:
parse in interface XMLParser
errorHandler - Errors found during the parsing must be reported to this handler so that XSOM can recognize that something went wrong. Always a non-null valid object
entityResolver - Entity resolution should be done through this interface. Can be null.
Throws:
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.
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.