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

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

public class DOMForestParser
extends 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(InputSource source, ContentHandler handler, EntityResolver entityResolver, ErrorHandler errHandler)
           
 void parse(InputSource source, ContentHandler handler, ErrorHandler errorHandler, EntityResolver entityResolver)
           
 
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,
                       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(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
Specified by:
parse in interface com.sun.xml.xsom.parser.XMLParser
Throws:
SAXException
IOException


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.