|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.xsd.util.DefaultJAXPPool
public class DefaultJAXPPool
The DefaultJAXPPool class provides a thread-safe implementation of JAXPPool interface.
| Constructor Summary | |
|---|---|
DefaultJAXPPool()
Creates an instance using DefaultJAXPConfiguration. |
|
DefaultJAXPPool(JAXPConfiguration configuration)
Creates an instance using the specified JAXPConfiguration. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJAXPPool()
DefaultJAXPConfiguration.
public DefaultJAXPPool(JAXPConfiguration configuration)
configuration - the non-null configuration used to create new
builders,
parsers,
and transformers.| Method Detail |
|---|
public javax.xml.parsers.DocumentBuilder getDocumentBuilder(org.xml.sax.ErrorHandler errorHandler)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
JAXPPool
getDocumentBuilder in interface JAXPPoolerrorHandler - the error handler to use while build documents.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionpublic void releaseDocumentBuilder(javax.xml.parsers.DocumentBuilder documentBuilder)
JAXPPoolfetched from this pool
back to the pool for subsequent reuse.
releaseDocumentBuilder in interface JAXPPooldocumentBuilder - the document builder to release.
public javax.xml.parsers.SAXParser getSAXParser(org.xml.sax.ext.LexicalHandler lexicalHandler)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
JAXPPool
getSAXParser in interface JAXPPoollexicalHandler - the lexical handler to use while parsing.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionpublic void releaseSAXParser(javax.xml.parsers.SAXParser parser)
JAXPPoolfetched from this pool
back to the pool for subsequent reuse.
releaseSAXParser in interface JAXPPoolparser - the SAX parser to release.
public javax.xml.transform.Transformer getTransformer(java.lang.String encoding)
throws javax.xml.transform.TransformerException
JAXPPool
getTransformer in interface JAXPPoolencoding - the encoding used to convert characters to bytes.
javax.xml.transform.TransformerExceptionpublic void releaseTransformer(javax.xml.transform.Transformer transformer)
JAXPPoolfetched from this pool
back to the pool for subsequent reuse.
releaseTransformer in interface JAXPPooltransformer - 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 | |||||||||