Top Fields Constructors Methods
com.sun.xml.fastinfoset.stax.factory

public Class StAXOutputFactory

extends XMLOutputFactory
Class Inheritance
Imports
com.sun.xml.fastinfoset.stax.*, com.sun.xml.fastinfoset.stax.events.StAXEventWriter, javax.xml.transform.Result, javax.xml.stream.XMLOutputFactory, .XMLEventWriter, .XMLStreamWriter, .XMLStreamException, javax.xml.transform.stream.StreamResult, java.io.FileWriter, .IOException, .OutputStream, .Writer, com.sun.xml.fastinfoset.CommonResourceBundle

Field Summary

Modifier and TypeField and Description
private StAXManager
Inherited from javax.xml.stream.XMLOutputFactory:
IS_REPAIRING_NAMESPACES

Constructor Summary

AccessConstructor and Description
public
StAXOutputFactory()

Creates a new instance of StAXOutputFactory

Method Summary

Modifier and TypeMethod and Description
public XMLEventWriter
createXMLEventWriter(Result result)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a JAXP result.

public XMLEventWriter
createXMLEventWriter(Writer writer)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a writer

public XMLEventWriter
createXMLEventWriter(OutputStream outputStream)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a stream

public XMLEventWriter
createXMLEventWriter(OutputStream outputStream, String encoding)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a stream

public XMLStreamWriter
createXMLStreamWriter(Result result)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Create a new XMLStreamWriter that writes to a JAXP result.

public XMLStreamWriter
createXMLStreamWriter(Writer writer)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

this is assumed that user wants to write the file in xml format

public XMLStreamWriter
createXMLStreamWriter(OutputStream outputStream)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Create a new XMLStreamWriter that writes to a stream

public XMLStreamWriter
createXMLStreamWriter(OutputStream outputStream, String encoding)

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Create a new XMLStreamWriter that writes to a stream

public Object
getProperty(String name)

Implements abstract javax.xml.stream.XMLOutputFactory.getProperty.

Get a feature/property on the underlying implementation

public boolean
isPropertySupported(String name)

Implements abstract javax.xml.stream.XMLOutputFactory.isPropertySupported.

Query the set of properties that this factory supports.

public void
setProperty(String name, Object value)

Implements abstract javax.xml.stream.XMLOutputFactory.setProperty.

Allows the user to set specific features/properties on the underlying implementation.

Inherited from javax.xml.stream.XMLOutputFactory:
newDefaultFactorynewFactorynewFactorynewInstancenewInstance

Field Detail

_managerback to summary
private StAXManager _manager

Constructor Detail

StAXOutputFactoryback to summary
public StAXOutputFactory()

Creates a new instance of StAXOutputFactory

Method Detail

createXMLEventWriterback to summary
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Doc from javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a JAXP result. This method is optional.

Annotations
@Override
Exceptions
XMLStreamException:
if an error occurs
createXMLEventWriterback to summary
public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Doc from javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a writer

Annotations
@Override
Exceptions
XMLStreamException:
if an error occurs
createXMLEventWriterback to summary
public XMLEventWriter createXMLEventWriter(OutputStream outputStream) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Doc from javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a stream

Annotations
@Override
Exceptions
XMLStreamException:
if an error occurs
createXMLEventWriterback to summary
public XMLEventWriter createXMLEventWriter(OutputStream outputStream, String encoding) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Doc from javax.xml.stream.XMLOutputFactory.createXMLEventWriter.

Create a new XMLEventWriter that writes to a stream

Annotations
@Override
Exceptions
XMLStreamException:
if an error occurs
createXMLStreamWriterback to summary
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Doc from javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Create a new XMLStreamWriter that writes to a JAXP result. This method is optional.

Annotations
@Override
Exceptions
XMLStreamException:
if an error occurs
createXMLStreamWriterback to summary
public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

this is assumed that user wants to write the file in xml format

Annotations
@Override
Exceptions
XMLStreamException:

Doc from javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

if an error occurs

createXMLStreamWriterback to summary
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Doc from javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Create a new XMLStreamWriter that writes to a stream

Annotations
@Override
Exceptions
XMLStreamException:
if an error occurs
createXMLStreamWriterback to summary
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream, String encoding) throws XMLStreamException

Implements abstract javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Doc from javax.xml.stream.XMLOutputFactory.createXMLStreamWriter.

Create a new XMLStreamWriter that writes to a stream

Annotations
@Override
Exceptions
XMLStreamException:
if an error occurs
getPropertyback to summary
public Object getProperty(String name) throws IllegalArgumentException

Implements abstract javax.xml.stream.XMLOutputFactory.getProperty.

Doc from javax.xml.stream.XMLOutputFactory.getProperty.

Get a feature/property on the underlying implementation

Annotations
@Override
Exceptions
IllegalArgumentException:
if the property is not supported
isPropertySupportedback to summary
public boolean isPropertySupported(String name)

Implements abstract javax.xml.stream.XMLOutputFactory.isPropertySupported.

Doc from javax.xml.stream.XMLOutputFactory.isPropertySupported.

Query the set of properties that this factory supports.

Annotations
@Override
setPropertyback to summary
public void setProperty(String name, Object value) throws IllegalArgumentException

Implements abstract javax.xml.stream.XMLOutputFactory.setProperty.

Doc from javax.xml.stream.XMLOutputFactory.setProperty.

Allows the user to set specific features/properties on the underlying implementation.

Annotations
@Override
Exceptions
IllegalArgumentException:
if the property is not supported