Package com.bea.xml.stream
Class XMLOutputFactoryBase
java.lang.Object
javax.xml.stream.XMLOutputFactory
com.bea.xml.stream.XMLOutputFactoryBase
Creates instances of the various interfaces for XML output
-
Field Summary
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateXMLEventWriter
(OutputStream stream) Create a new XMLEventWriter that writes to a streamcreateXMLEventWriter
(OutputStream stream, String encoding) Create a new XMLEventWriter that writes to a streamcreateXMLEventWriter
(Writer stream) Create a new XMLEventWriter that writes to a writercreateXMLEventWriter
(Result result) Create a new XMLEventWriter that writes to a JAXP result.createXMLStreamWriter
(OutputStream stream) Create a new XMLStreamWriter that writes to a streamcreateXMLStreamWriter
(OutputStream stream, String encoding) Create a new XMLStreamWriter that writes to a streamcreateXMLStreamWriter
(Writer stream) Create a new XMLStreamWriter that writes to a writercreateXMLStreamWriter
(Result result) Create a new XMLStreamWriter that writes to a JAXP result.getProperty
(String name) Get a feature/property on the underlying implementationboolean
boolean
isPropertySupported
(String name) Query the set of properties that this factory supports.void
setPrefixDefaulting
(boolean value) void
setProperty
(String name, Object value) Allows the user to set specific features/properties on the underlying implementation.Methods inherited from class javax.xml.stream.XMLOutputFactory
newInstance, newInstance
-
Constructor Details
-
XMLOutputFactoryBase
public XMLOutputFactoryBase()
-
-
Method Details
-
createXMLStreamWriter
Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a writer- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Parameters:
stream
- the writer to write to- Throws:
XMLStreamException
-
createXMLStreamWriter
Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a stream- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Parameters:
stream
- the stream to write to- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a stream- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Parameters:
stream
- the stream to write toencoding
- the encoding to use- Throws:
XMLStreamException
-
createXMLEventWriter
Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a stream- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Parameters:
stream
- the stream to write to- Throws:
XMLStreamException
-
createXMLEventWriter
Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a writer- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Parameters:
stream
- the stream to write to- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a stream- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Parameters:
stream
- the stream to write toencoding
- the encoding to use- Throws:
XMLStreamException
-
setProperty
Description copied from class:javax.xml.stream.XMLOutputFactory
Allows the user to set specific features/properties on the underlying implementation.- Specified by:
setProperty
in classXMLOutputFactory
- Parameters:
name
- The name of the propertyvalue
- The value of the property
-
getProperty
Description copied from class:javax.xml.stream.XMLOutputFactory
Get a feature/property on the underlying implementation- Specified by:
getProperty
in classXMLOutputFactory
- Parameters:
name
- The name of the property- Returns:
- The value of the property
-
isPrefixDefaulting
public boolean isPrefixDefaulting() -
setPrefixDefaulting
public void setPrefixDefaulting(boolean value) -
isPropertySupported
Description copied from class:javax.xml.stream.XMLOutputFactory
Query the set of properties that this factory supports.- Specified by:
isPropertySupported
in classXMLOutputFactory
- Parameters:
name
- The name of the property (may not be null)- Returns:
- true if the property is supported and false otherwise
-
createXMLStreamWriter
Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a JAXP result. This method is optional.- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Parameters:
result
- the result to write to- Throws:
XMLStreamException
-
createXMLEventWriter
Description copied from class:javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a JAXP result. This method is optional.- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Parameters:
result
- the result to write to- Throws:
XMLStreamException
-