javax.xml.stream
Class XMLOutputFactory

java.lang.Object
  extended by javax.xml.stream.XMLOutputFactory

public abstract class XMLOutputFactory
extends Object


Field Summary
static String IS_REPAIRING_NAMESPACES
           
 
Constructor Summary
protected XMLOutputFactory()
           
 
Method Summary
abstract  XMLEventWriter createXMLEventWriter(OutputStream stream)
           
abstract  XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding)
           
abstract  XMLEventWriter createXMLEventWriter(Result result)
           
abstract  XMLEventWriter createXMLEventWriter(Writer stream)
           
abstract  XMLStreamWriter createXMLStreamWriter(OutputStream stream)
           
abstract  XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding)
           
abstract  XMLStreamWriter createXMLStreamWriter(Result result)
           
abstract  XMLStreamWriter createXMLStreamWriter(Writer stream)
           
abstract  Object getProperty(String name)
           
abstract  boolean isPropertySupported(String name)
           
static XMLOutputFactory newFactory()
          Create a new XMLOutputFactory This is the replacement for the deprecated newInstance() method
static XMLOutputFactory newFactory(String factoryId, ClassLoader classLoader)
          Create a new XMLOutputFactory This is the replacement for the deprecated newInstance() method
static XMLOutputFactory newInstance()
           
static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader)
          Deprecated. This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class. Use the new method newFactory(java.lang.String factoryId,java.lang.ClassLoader classLoader) instead.
abstract  void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_REPAIRING_NAMESPACES

public static final String IS_REPAIRING_NAMESPACES
See Also:
Constant Field Values
Constructor Detail

XMLOutputFactory

protected XMLOutputFactory()
Method Detail

newInstance

public static XMLOutputFactory newInstance()
                                    throws FactoryConfigurationError
Throws:
FactoryConfigurationError

newInstance

public static XMLInputFactory newInstance(String factoryId,
                                          ClassLoader classLoader)
                                   throws FactoryConfigurationError
Deprecated. This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class. Use the new method newFactory(java.lang.String factoryId,java.lang.ClassLoader classLoader) instead.

Create a new XMLOutputFactory

Throws:
FactoryConfigurationError

newFactory

public static XMLOutputFactory newFactory()
                                   throws FactoryConfigurationError
Create a new XMLOutputFactory This is the replacement for the deprecated newInstance() method

Throws:
FactoryConfigurationError

newFactory

public static XMLOutputFactory newFactory(String factoryId,
                                          ClassLoader classLoader)
                                   throws FactoryConfigurationError
Create a new XMLOutputFactory This is the replacement for the deprecated newInstance() method

Throws:
FactoryConfigurationError

createXMLStreamWriter

public abstract XMLStreamWriter createXMLStreamWriter(Writer stream)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamWriter

public abstract XMLStreamWriter createXMLStreamWriter(OutputStream stream)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamWriter

public abstract XMLStreamWriter createXMLStreamWriter(OutputStream stream,
                                                      String encoding)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamWriter

public abstract XMLStreamWriter createXMLStreamWriter(Result result)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLEventWriter

public abstract XMLEventWriter createXMLEventWriter(Result result)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventWriter

public abstract XMLEventWriter createXMLEventWriter(OutputStream stream)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventWriter

public abstract XMLEventWriter createXMLEventWriter(OutputStream stream,
                                                    String encoding)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventWriter

public abstract XMLEventWriter createXMLEventWriter(Writer stream)
                                             throws XMLStreamException
Throws:
XMLStreamException

setProperty

public abstract void setProperty(String name,
                                 Object value)
                          throws IllegalArgumentException
Throws:
IllegalArgumentException

getProperty

public abstract Object getProperty(String name)
                            throws IllegalArgumentException
Throws:
IllegalArgumentException

isPropertySupported

public abstract boolean isPropertySupported(String name)


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.