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 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 implementationbooleanbooleanisPropertySupported(String name) Query the set of properties that this factory supports.voidsetPrefixDefaulting(boolean value) voidsetProperty(String name, Object value) Allows the user to set specific features/properties on the underlying implementation.Methods inherited from class XMLOutputFactory
newInstance, newInstance
-
Constructor Details
-
XMLOutputFactoryBase
public XMLOutputFactoryBase()
-
-
Method Details
-
createXMLStreamWriter
Description copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a writer- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Parameters:
stream- the writer to write to- Throws:
XMLStreamException
-
createXMLStreamWriter
Description copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a stream- Specified by:
createXMLStreamWriterin 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.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a stream- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Parameters:
stream- the stream to write toencoding- the encoding to use- Throws:
XMLStreamException
-
createXMLEventWriter
Description copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLEventWriter that writes to a stream- Specified by:
createXMLEventWriterin classXMLOutputFactory- Parameters:
stream- the stream to write to- Throws:
XMLStreamException
-
createXMLEventWriter
Description copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLEventWriter that writes to a writer- Specified by:
createXMLEventWriterin 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.XMLOutputFactoryCreate a new XMLEventWriter that writes to a stream- Specified by:
createXMLEventWriterin classXMLOutputFactory- Parameters:
stream- the stream to write toencoding- the encoding to use- Throws:
XMLStreamException
-
setProperty
Description copied from class:javax.xml.stream.XMLOutputFactoryAllows the user to set specific features/properties on the underlying implementation.- Specified by:
setPropertyin classXMLOutputFactory- Parameters:
name- The name of the propertyvalue- The value of the property
-
getProperty
Description copied from class:javax.xml.stream.XMLOutputFactoryGet a feature/property on the underlying implementation- Specified by:
getPropertyin 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.XMLOutputFactoryQuery the set of properties that this factory supports.- Specified by:
isPropertySupportedin 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.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a JAXP result. This method is optional.- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Parameters:
result- the result to write to- Throws:
XMLStreamException
-
createXMLEventWriter
Description copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLEventWriter that writes to a JAXP result. This method is optional.- Specified by:
createXMLEventWriterin classXMLOutputFactory- Parameters:
result- the result to write to- Throws:
XMLStreamException
-