com.bea.xml.stream
Class XMLOutputFactoryBase

java.lang.Object
  extended byjavax.xml.stream.XMLOutputFactory
      extended bycom.bea.xml.stream.XMLOutputFactoryBase

public class XMLOutputFactoryBase
extends javax.xml.stream.XMLOutputFactory

Creates instances of the various interfaces for XML output


Field Summary
 
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
 
Constructor Summary
XMLOutputFactoryBase()
           
 
Method Summary
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
          Create a new XMLEventWriter that writes to a stream
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream, java.lang.String encoding)
          Create a new XMLEventWriter that writes to a stream
 javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
          Create a new XMLEventWriter that writes to a JAXP result.
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer stream)
          Create a new XMLEventWriter that writes to a writer
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
          Create a new XMLStreamWriter that writes to a stream
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream, java.lang.String encoding)
          Create a new XMLStreamWriter that writes to a stream
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
          Create a new XMLStreamWriter that writes to a JAXP result.
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer stream)
          Create a new XMLStreamWriter that writes to a writer
 java.lang.Object getProperty(java.lang.String name)
          Get a feature/property on the underlying implementation
 boolean isPrefixDefaulting()
           
 boolean isPropertySupported(java.lang.String name)
          Query the set of properties that this factory supports.
static javax.xml.stream.XMLOutputFactory newInstance()
          Create a new instance of the factory using the default factory location mechanism (check env.
 void setPrefixDefaulting(boolean value)
           
 void setProperty(java.lang.String name, java.lang.Object value)
          Allows the user to set specific features/properties on the underlying implementation.
 
Methods inherited from class javax.xml.stream.XMLOutputFactory
newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLOutputFactoryBase

public XMLOutputFactoryBase()
Method Detail

newInstance

public static javax.xml.stream.XMLOutputFactory newInstance()
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new instance of the factory using the default factory location mechanism (check env. variable, jaxp.properties, jar services manifest, in this order)


createXMLStreamWriter

public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer stream)
                                                       throws javax.xml.stream.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a writer

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.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a stream

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.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a stream

Parameters:
stream - the stream to write to
encoding - the encoding to use
Throws:
javax.xml.stream.XMLStreamException

createXMLEventWriter

public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
                                                     throws javax.xml.stream.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a stream

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.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a writer

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.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a stream

Parameters:
stream - the stream to write to
encoding - 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.XMLOutputFactory
Allows the user to set specific features/properties on the underlying implementation.

Parameters:
name - The name of the property
value - The value of the property

getProperty

public java.lang.Object getProperty(java.lang.String name)
Description copied from class: javax.xml.stream.XMLOutputFactory
Get a feature/property on the underlying implementation

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.XMLOutputFactory
Query the set of properties that this factory supports.

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.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLStreamWriter that writes to a JAXP result. This method is optional.

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.XMLStreamException
Description copied from class: javax.xml.stream.XMLOutputFactory
Create a new XMLEventWriter that writes to a JAXP result. This method is optional.

Parameters:
result - the result to write to
Throws:
javax.xml.stream.XMLStreamException