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 |
---|
XMLStreamWriterFactory.Default(javax.xml.stream.XMLOutputFactory xof) |
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.XMLStreamWriter |
doCreate(OutputStream out)
See
XMLStreamWriterFactory.create(OutputStream) for the contract. |
javax.xml.stream.XMLStreamWriter |
doCreate(OutputStream out,
String encoding)
See
XMLStreamWriterFactory.create(OutputStream,String) for the contract. |
void |
doRecycle(javax.xml.stream.XMLStreamWriter r)
See
XMLStreamWriterFactory.recycle(XMLStreamWriter) for the contract. |
create, create, createXMLStreamWriter, createXMLStreamWriter, createXMLStreamWriter, get, recycle, set
public XMLStreamWriterFactory.Default(javax.xml.stream.XMLOutputFactory xof)
public javax.xml.stream.XMLStreamWriter doCreate(OutputStream out)
XMLStreamWriterFactory
XMLStreamWriterFactory.create(OutputStream)
for the contract.
This method may be invoked concurrently.doCreate
in class XMLStreamWriterFactory
public javax.xml.stream.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(javax.xml.stream.XMLStreamWriter r)
XMLStreamWriterFactory
XMLStreamWriterFactory.recycle(XMLStreamWriter)
for the contract.
This method may be invoked concurrently.doRecycle
in class XMLStreamWriterFactory
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.