|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.easycommons.xml.XMLOutputFactories
public final class XMLOutputFactories
A static pool of XMLOutputFactory to improve XMLOutputFactory creation efficiency.
A XMLOutputFactory is initialized the first time this class is used.
An infinite number (integer maximum value) of XMLOutputFactory may be created. They are never evicted.
| Constructor Summary | |
|---|---|
XMLOutputFactories()
|
|
| Method Summary | |
|---|---|
static javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream outputStream)
Create a XMLStreamWriter from a specified OutputStream by
using the pool of XMLOutputFactory |
static void |
releaseXMLOutputFactory(javax.xml.stream.XMLOutputFactory xmlOutputFactory)
Release a XMLOutputFactory to the pool |
static javax.xml.stream.XMLOutputFactory |
takeXMLOutputFactory()
Take a XMLOutputFactory from the pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLOutputFactories()
| Method Detail |
|---|
public static final javax.xml.stream.XMLOutputFactory takeXMLOutputFactory()
throws PoolException
XMLOutputFactory from the pool
XMLOutputFactory
PoolException - if the current thread waits for a XMLOutputFactory
of the pool and is interruptedpublic static final void releaseXMLOutputFactory(javax.xml.stream.XMLOutputFactory xmlOutputFactory)
XMLOutputFactory to the pool
xmlOutputFactory - a XMLOutputFactory to release
public static final javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream outputStream)
throws javax.xml.stream.XMLStreamException
XMLStreamWriter from a specified OutputStream by
using the pool of XMLOutputFactory
outputStream - an OutputStream
XMLStreamWriter
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 | |||||||||