|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.easycommons.xml.XMLInputFactories
public final class XMLInputFactories
A static pool of XMLInputFactory to improve XMLInputFactory
creation efficiency. A XMLInputFactory is initialized the first time
this class is used. An infinite number (integer maximum value) of
XMLInputFactory may be created. They are never evicted.
| Constructor Summary | |
|---|---|
XMLInputFactories()
|
|
| Method Summary | |
|---|---|
static javax.xml.stream.XMLStreamReader |
createXMLStreamReader(java.io.InputStream InputStream)
Create a XMLStreamReader from a specified InputStream by
using the pool of XMLInputFactory |
static void |
releaseXMLInputFactory(javax.xml.stream.XMLInputFactory xmlInputFactory)
Release a XMLInputFactory to the pool |
static javax.xml.stream.XMLInputFactory |
takeXMLInputFactory()
Take a XMLInputFactory from the pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLInputFactories()
| Method Detail |
|---|
public static final javax.xml.stream.XMLInputFactory takeXMLInputFactory()
throws PoolException
XMLInputFactory from the pool
XMLInputFactory
PoolException - if the current thread waits for a XMLInputFactory of
the pool and is interruptedpublic static final void releaseXMLInputFactory(javax.xml.stream.XMLInputFactory xmlInputFactory)
XMLInputFactory to the pool
xmlInputFactory - a XMLInputFactory to release
public static final javax.xml.stream.XMLStreamReader createXMLStreamReader(java.io.InputStream InputStream)
throws javax.xml.stream.XMLStreamException
XMLStreamReader from a specified InputStream by
using the pool of XMLInputFactory
InputStream - an InputStream
XMLStreamReader
javax.xml.stream.XMLStreamException - if an unexpected processing errors occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||