org.eclipse.xsd.util
Class DefaultJAXPPool

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


Constructor Summary
DefaultJAXPPool()
          Creates JAXPPool using DefaultJAXPConfiguration implementation
DefaultJAXPPool(JAXPConfiguration configuration)
          Creates JAXP pool using specified JAXPConfiguration.
 
Method Summary
 DocumentBuilder getDocumentBuilder(ErrorHandler errorHandler)
           
 SAXParser getSAXParser(LexicalHandler lexicalHandler)
           
 Transformer getTransformer(String encoding)
           
 void releaseDocumentBuilder(DocumentBuilder documentBuilder)
           
 void releaseSAXParser(SAXParser parser)
           
 void releaseTransformer(Transformer transformer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

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