public static final class XMLStreamWriterFactory.Default extends XMLStreamWriterFactory
XMLStreamWriterFactory
implementation
that can work with any XMLOutputFactory
.
XMLOutputFactory
is not required to be thread-safe, so the
create method on this implementation is synchronized.
XMLStreamWriterFactory.Default, XMLStreamWriterFactory.NoLock, XMLStreamWriterFactory.RecycleAware, XMLStreamWriterFactory.Zephyr
Constructor and Description |
---|
Default(XMLOutputFactory xof) |
Modifier and Type | Method and Description |
---|---|
XMLStreamWriter |
doCreate(OutputStream out)
See
XMLStreamWriterFactory.create(OutputStream) for the contract. |
XMLStreamWriter |
doCreate(OutputStream out,
String encoding)
See
XMLStreamWriterFactory.create(OutputStream,String) for the contract. |
void |
doRecycle(XMLStreamWriter r)
See
XMLStreamWriterFactory.recycle(XMLStreamWriter) for the contract. |
create, create, createXMLStreamWriter, createXMLStreamWriter, createXMLStreamWriter, get, recycle, set
public Default(XMLOutputFactory xof)
public XMLStreamWriter doCreate(OutputStream out)
XMLStreamWriterFactory
XMLStreamWriterFactory.create(OutputStream)
for the contract.
This method may be invoked concurrently.doCreate
in class XMLStreamWriterFactory
public XMLStreamWriter doCreate(OutputStream out, String encoding)
XMLStreamWriterFactory
XMLStreamWriterFactory.create(OutputStream,String)
for the contract.
This method may be invoked concurrently.doCreate
in class XMLStreamWriterFactory
public void doRecycle(XMLStreamWriter r)
XMLStreamWriterFactory
XMLStreamWriterFactory.recycle(XMLStreamWriter)
for the contract.
This method may be invoked concurrently.doRecycle
in class XMLStreamWriterFactory
Copyright © 2015 Oracle Corporation. All rights reserved.