org.eclipse.xsd.util
Class DefaultJAXPPool
java.lang.Object
org.eclipse.xsd.util.DefaultJAXPPool
- All Implemented Interfaces:
- JAXPPool
- public class DefaultJAXPPool
- extends Object
- implements JAXPPool
The DefaultJAXPPool class provides a thread-safe implementation of JAXPPool interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJAXPPool
public DefaultJAXPPool()
- Creates JAXPPool using DefaultJAXPConfiguration implementation
DefaultJAXPPool
public DefaultJAXPPool(JAXPConfiguration configuration)
- Creates JAXP pool using specified JAXPConfiguration.
- Parameters:
configuration
- - specify JAXPConfiguration (null is not a valid value)
getDocumentBuilder
public DocumentBuilder getDocumentBuilder(ErrorHandler errorHandler)
throws ParserConfigurationException,
SAXException
- Specified by:
getDocumentBuilder
in interface JAXPPool
- Throws:
ParserConfigurationException
SAXException
releaseDocumentBuilder
public void releaseDocumentBuilder(DocumentBuilder documentBuilder)
- Specified by:
releaseDocumentBuilder
in interface JAXPPool
getSAXParser
public SAXParser getSAXParser(LexicalHandler lexicalHandler)
throws ParserConfigurationException,
SAXException
- Specified by:
getSAXParser
in interface JAXPPool
- Throws:
ParserConfigurationException
SAXException
releaseSAXParser
public void releaseSAXParser(SAXParser parser)
- Specified by:
releaseSAXParser
in interface JAXPPool
getTransformer
public Transformer getTransformer(String encoding)
throws TransformerException
- Specified by:
getTransformer
in interface JAXPPool
- Throws:
TransformerException
releaseTransformer
public void releaseTransformer(Transformer transformer)
- Specified by:
releaseTransformer
in interface JAXPPool