org.eclipse.xsd.util
Class DefaultJAXPConfiguration
java.lang.Object
org.eclipse.xsd.util.DefaultJAXPConfiguration
- All Implemented Interfaces:
- JAXPConfiguration
- public class DefaultJAXPConfiguration
- extends Object
- implements JAXPConfiguration
This class provides a default implementation of JAXPConfiguration interface. It creates
and configures SAX parser, DOM parser and transformer using options needed by XSD implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJAXPConfiguration
public DefaultJAXPConfiguration()
createTransformer
public Transformer createTransformer(String encoding)
throws TransformerException
- Specified by:
createTransformer
in interface JAXPConfiguration
- Throws:
TransformerException
createSAXParser
public SAXParser createSAXParser(LexicalHandler lexicalHandler)
throws ParserConfigurationException,
SAXException
- Creates a SAXParser and sets some default options.
- Specified by:
createSAXParser
in interface JAXPConfiguration
- Throws:
ParserConfigurationException
SAXException
createDocumentBuilder
public DocumentBuilder createDocumentBuilder(ErrorHandler errorHandler)
throws ParserConfigurationException
- Creates a DocumentBuilder and sets some default options.
If features or properties are available, these features and properties are set on the documentBuilder.
- Specified by:
createDocumentBuilder
in interface JAXPConfiguration
- Throws:
ParserConfigurationException
createEntityResolver
public EntityResolver createEntityResolver()
- Specified by:
createEntityResolver
in interface JAXPConfiguration