javanet.staxutils
Class BaseXMLOutputFactory

java.lang.Object
  extended byjavax.xml.stream.XMLOutputFactory
      extended byjavanet.staxutils.BaseXMLOutputFactory
Direct Known Subclasses:
OutputFactory

public abstract class BaseXMLOutputFactory
extends XMLOutputFactory

Base XMLOutputFactory that provides common event functionality.

Version:
$Revision: 1.2 $
Author:
Christian Niles

Field Summary
 
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
 
Constructor Summary
BaseXMLOutputFactory()
           
 
Method Summary
 XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
           
 XMLEventWriter createXMLEventWriter(java.io.OutputStream stream, java.lang.String encoding)
           
 XMLEventWriter createXMLEventWriter(Result result)
           
 XMLEventWriter createXMLEventWriter(java.io.Writer stream)
           
 XMLEventWriter createXMLEventWriter(XMLStreamWriter writer)
          Creates an XMLEventWriter that writes to the provided XMLStreamWriter.
 XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
           
 XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream, java.lang.String encoding)
           
 XMLStreamWriter createXMLStreamWriter(Result result)
           
 java.lang.Object getProperty(java.lang.String name)
           
 boolean isPropertySupported(java.lang.String name)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class javax.xml.stream.XMLOutputFactory
createXMLStreamWriter, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseXMLOutputFactory

public BaseXMLOutputFactory()
Method Detail

createXMLEventWriter

public XMLEventWriter createXMLEventWriter(java.io.OutputStream stream,
                                           java.lang.String encoding)
                                    throws XMLStreamException
Throws:
XMLStreamException

createXMLEventWriter

public XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
                                    throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamWriter

public XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream,
                                             java.lang.String encoding)
                                      throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamWriter

public XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
                                      throws XMLStreamException
Throws:
XMLStreamException

createXMLEventWriter

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

createXMLEventWriter

public XMLEventWriter createXMLEventWriter(XMLStreamWriter writer)
Creates an XMLEventWriter that writes to the provided XMLStreamWriter.

Parameters:
writer - The destination stream.
Returns:
An XMLEventWriter that writes to the provided XMLStreamWriter.

createXMLEventWriter

public XMLEventWriter createXMLEventWriter(java.io.Writer stream)
                                    throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamWriter

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

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

isPropertySupported

public boolean isPropertySupported(java.lang.String name)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException