|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JAXPPool
This interface defines pool that can be used to fetch and cache document builders, SAX parsers, and transformers. It's generally expected that instances will be thread safe.
| Method Summary | |
|---|---|
javax.xml.parsers.DocumentBuilder |
getDocumentBuilder(org.xml.sax.ErrorHandler errorHandler)
Fetches a document builder and sets the given error handler. |
javax.xml.parsers.SAXParser |
getSAXParser(org.xml.sax.ext.LexicalHandler lexicalHandler)
Fetches a SAX parser and set the given lexical handler. |
javax.xml.transform.Transformer |
getTransformer(java.lang.String encoding)
Fetches a transformer and set the given encoding. |
void |
releaseDocumentBuilder(javax.xml.parsers.DocumentBuilder documentBuilder)
Returns a document builder fetched from this pool
back to the pool for subsequent reuse. |
void |
releaseSAXParser(javax.xml.parsers.SAXParser parser)
Returns a SAX parser fetched from this pool
back to the pool for subsequent reuse. |
void |
releaseTransformer(javax.xml.transform.Transformer transformer)
Returns a transformer fetched from this pool
back to the pool for subsequent reuse. |
| Method Detail |
|---|
javax.xml.parsers.DocumentBuilder getDocumentBuilder(org.xml.sax.ErrorHandler errorHandler)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
errorHandler - the error handler to use while build documents.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionvoid releaseDocumentBuilder(javax.xml.parsers.DocumentBuilder documentBuilder)
fetched from this pool
back to the pool for subsequent reuse.
documentBuilder - the document builder to release.
javax.xml.parsers.SAXParser getSAXParser(org.xml.sax.ext.LexicalHandler lexicalHandler)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
lexicalHandler - the lexical handler to use while parsing.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionvoid releaseSAXParser(javax.xml.parsers.SAXParser parser)
fetched from this pool
back to the pool for subsequent reuse.
parser - the SAX parser to release.
javax.xml.transform.Transformer getTransformer(java.lang.String encoding)
throws javax.xml.transform.TransformerException
encoding - the encoding used to convert characters to bytes.
javax.xml.transform.TransformerExceptionvoid releaseTransformer(javax.xml.transform.Transformer transformer)
fetched from this pool
back to the pool for subsequent reuse.
transformer - the transformer to release.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||