org.eclipse.xsd.util
Class DefaultJAXPConfiguration

java.lang.Object
  extended byorg.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.


Constructor Summary
DefaultJAXPConfiguration()
           
 
Method Summary
 DocumentBuilder createDocumentBuilder(ErrorHandler errorHandler)
          Creates a DocumentBuilder and sets some default options.
 EntityResolver createEntityResolver()
           
 SAXParser createSAXParser(LexicalHandler lexicalHandler)
          Creates a SAXParser and sets some default options.
 Transformer createTransformer(String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJAXPConfiguration

public DefaultJAXPConfiguration()
Method Detail

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

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.