Top Fields Constructors Methods
org.codehaus.jettison

public abstract Class AbstractXMLOutputFactory

extends XMLOutputFactory
Class Inheritance
Known Direct Subclasses
org.codehaus.jettison.badgerfish.BadgerFishXMLOutputFactory, org.codehaus.jettison.mapped.MappedXMLOutputFactory
Imports
java.io.OutputStream, .OutputStreamWriter, .UnsupportedEncodingException, .Writer, javax.xml.stream.XMLEventWriter, .XMLOutputFactory, .XMLStreamException, .XMLStreamWriter, javax.xml.transform.Result, javax.xml.transform.stream.StreamResult

Field Summary

Inherited from javax.xml.stream.XMLOutputFactory:
IS_REPAIRING_NAMESPACES

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMLEventWriter
createXMLEventWriter(OutputStream
the stream to write to
out
,
String
the encoding to use
charset
)

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

Create a new XMLEventWriter that writes to a stream
public XMLEventWriter
createXMLEventWriter(OutputStream
the stream to write to
out
)

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

Create a new XMLEventWriter that writes to a stream
public XMLEventWriter
createXMLEventWriter(Result
the result to write to
result
)

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

Create a new XMLEventWriter that writes to a JAXP result.
public XMLEventWriter
createXMLEventWriter(Writer
the stream to write to
writer
)

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

Create a new XMLEventWriter that writes to a writer
public XMLStreamWriter
createXMLStreamWriter(OutputStream
the stream to write to
out
,
String
the encoding to use
charset
)

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

Create a new XMLStreamWriter that writes to a stream
public XMLStreamWriter
createXMLStreamWriter(OutputStream
the stream to write to
out
)

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

Create a new XMLStreamWriter that writes to a stream
public XMLStreamWriter
createXMLStreamWriter(Result
the result to write to
result
)

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

Create a new XMLStreamWriter that writes to a JAXP result.
public abstract XMLStreamWriter
createXMLStreamWriter(Writer
the writer to write to
writer
)

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

Create a new XMLStreamWriter that writes to a writer
public Object
getProperty(String
The name of the property
arg0
)

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

Get a feature/property on the underlying implementation
public boolean
isPropertySupported(String
The name of the property (may not be null)
arg0
)

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

Query the set of properties that this factory supports.
public void
setProperty(String
The name of the property
arg0
,
Object
The value of the property
arg1
)

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

Constructor Detail

AbstractXMLOutputFactoryback to summary
public AbstractXMLOutputFactory()

Method Detail

createXMLEventWriterback to summary
public XMLEventWriter createXMLEventWriter(OutputStream out, String charset) 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

Parameters
out:OutputStream

the stream to write to

charset:String

the encoding to use

Returns:XMLEventWriter

instance of the XMLEventWriter

Exceptions
XMLStreamException:
if an error occurs
createXMLEventWriterback to summary
public XMLEventWriter createXMLEventWriter(OutputStream out) 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

Parameters
out:OutputStream

the stream to write to

Returns:XMLEventWriter

instance of the XMLEventWriter

Exceptions
XMLStreamException:
if an error occurs
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.

Parameters
result:Result

the result to write to

Returns:XMLEventWriter

instance of the XMLEventWriter

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

Parameters
writer:Writer

the stream to write to

Returns:XMLEventWriter

instance of the XMLEventWriter

Exceptions
XMLStreamException:
if an error occurs
createXMLStreamWriterback to summary
public XMLStreamWriter createXMLStreamWriter(OutputStream out, String charset) 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

Parameters
out:OutputStream

the stream to write to

charset:String

the encoding to use

Returns:XMLStreamWriter

instance of the XMLStreamWriter

Exceptions
XMLStreamException:
if an error occurs
createXMLStreamWriterback to summary
public XMLStreamWriter createXMLStreamWriter(OutputStream out) 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

Parameters
out:OutputStream

the stream to write to

Returns:XMLStreamWriter

instance of the XMLStreamWriter

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.

Parameters
result:Result

the result to write to

Returns:XMLStreamWriter

instance of the XMLStreamWriter

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

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

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

Create a new XMLStreamWriter that writes to a writer

Parameters
writer:Writer

the writer to write to

Returns:XMLStreamWriter

instance of the XMLStreamWriter

Exceptions
XMLStreamException:
if an error occurs
getPropertyback to summary
public Object getProperty(String arg0) throws IllegalArgumentException

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

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

Get a feature/property on the underlying implementation

Parameters
arg0:String

The name of the property

Returns:Object

The value of the property

Exceptions
IllegalArgumentException:
if the property is not supported
isPropertySupportedback to summary
public boolean isPropertySupported(String arg0)

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

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

Query the set of properties that this factory supports.

Parameters
arg0:String

The name of the property (may not be null)

Returns:boolean

true if the property is supported and false otherwise

setPropertyback to summary
public void setProperty(String arg0, Object arg1) 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.

Parameters
arg0:String

The name of the property

arg1:Object

The value of the property

Exceptions
IllegalArgumentException:
if the property is not supported