org.eclipse.xsd.util
Interface JAXPPool
- All Known Implementing Classes:
- DefaultJAXPPool
- public interface JAXPPool
This interface defines pool that can be used to cache and retrieve SAX parser, DOM parser and Transformer.
getDocumentBuilder
public DocumentBuilder getDocumentBuilder(ErrorHandler errorHandler)
throws ParserConfigurationException,
SAXException
- Throws:
ParserConfigurationException
SAXException
releaseDocumentBuilder
public void releaseDocumentBuilder(DocumentBuilder documentBuilder)
getSAXParser
public SAXParser getSAXParser(LexicalHandler lexicalHandler)
throws ParserConfigurationException,
SAXException
- Throws:
ParserConfigurationException
SAXException
releaseSAXParser
public void releaseSAXParser(SAXParser parser)
getTransformer
public Transformer getTransformer(String encoding)
throws TransformerException
- Throws:
TransformerException
releaseTransformer
public void releaseTransformer(Transformer transformer)