Package com.bea.xml.stream
Class XMLOutputFactoryBase
- java.lang.Object
-
- javax.xml.stream.XMLOutputFactory
-
- com.bea.xml.stream.XMLOutputFactoryBase
-
public class XMLOutputFactoryBase extends javax.xml.stream.XMLOutputFactoryCreates instances of the various interfaces for XML output
-
-
Constructor Summary
Constructors Constructor Description XMLOutputFactoryBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.stream.XMLEventWritercreateXMLEventWriter(java.io.OutputStream stream)Create a new XMLEventWriter that writes to a streamjavax.xml.stream.XMLEventWritercreateXMLEventWriter(java.io.OutputStream stream, java.lang.String encoding)Create a new XMLEventWriter that writes to a streamjavax.xml.stream.XMLEventWritercreateXMLEventWriter(java.io.Writer stream)Create a new XMLEventWriter that writes to a writerjavax.xml.stream.XMLEventWritercreateXMLEventWriter(javax.xml.transform.Result result)Create a new XMLEventWriter that writes to a JAXP result.javax.xml.stream.XMLStreamWritercreateXMLStreamWriter(java.io.OutputStream stream)Create a new XMLStreamWriter that writes to a streamjavax.xml.stream.XMLStreamWritercreateXMLStreamWriter(java.io.OutputStream stream, java.lang.String encoding)Create a new XMLStreamWriter that writes to a streamjavax.xml.stream.XMLStreamWritercreateXMLStreamWriter(java.io.Writer stream)Create a new XMLStreamWriter that writes to a writerjavax.xml.stream.XMLStreamWritercreateXMLStreamWriter(javax.xml.transform.Result result)Create a new XMLStreamWriter that writes to a JAXP result.java.lang.ObjectgetProperty(java.lang.String name)Get a feature/property on the underlying implementationbooleanisPrefixDefaulting()booleanisPropertySupported(java.lang.String name)Query the set of properties that this factory supports.voidsetPrefixDefaulting(boolean value)voidsetProperty(java.lang.String name, java.lang.Object value)Allows the user to set specific features/properties on the underlying implementation.
-
-
-
Method Detail
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer stream) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a writer- Specified by:
createXMLStreamWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
stream- the writer to write to- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a stream- Specified by:
createXMLStreamWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
stream- the stream to write to- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream, java.lang.String encoding) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a stream- Specified by:
createXMLStreamWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
stream- the stream to write toencoding- the encoding to use- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLEventWriter that writes to a stream- Specified by:
createXMLEventWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
stream- the stream to write to- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer stream) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLEventWriter that writes to a writer- Specified by:
createXMLEventWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
stream- the stream to write to- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream, java.lang.String encoding) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLEventWriter that writes to a stream- Specified by:
createXMLEventWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
stream- the stream to write toencoding- the encoding to use- Throws:
javax.xml.stream.XMLStreamException
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value)Description copied from class:javax.xml.stream.XMLOutputFactoryAllows the user to set specific features/properties on the underlying implementation.- Specified by:
setPropertyin classjavax.xml.stream.XMLOutputFactory- Parameters:
name- The name of the propertyvalue- The value of the property
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
Description copied from class:javax.xml.stream.XMLOutputFactoryGet a feature/property on the underlying implementation- Specified by:
getPropertyin classjavax.xml.stream.XMLOutputFactory- Parameters:
name- The name of the property- Returns:
- The value of the property
-
isPrefixDefaulting
public boolean isPrefixDefaulting()
-
setPrefixDefaulting
public void setPrefixDefaulting(boolean value)
-
isPropertySupported
public boolean isPropertySupported(java.lang.String name)
Description copied from class:javax.xml.stream.XMLOutputFactoryQuery the set of properties that this factory supports.- Specified by:
isPropertySupportedin classjavax.xml.stream.XMLOutputFactory- Parameters:
name- The name of the property (may not be null)- Returns:
- true if the property is supported and false otherwise
-
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLStreamWriter that writes to a JAXP result. This method is optional.- Specified by:
createXMLStreamWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
result- the result to write to- Throws:
javax.xml.stream.XMLStreamException
-
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamExceptionDescription copied from class:javax.xml.stream.XMLOutputFactoryCreate a new XMLEventWriter that writes to a JAXP result. This method is optional.- Specified by:
createXMLEventWriterin classjavax.xml.stream.XMLOutputFactory- Parameters:
result- the result to write to- Throws:
javax.xml.stream.XMLStreamException
-
-