com.sun.xml.stream
Class ZephyrWriterFactory

java.lang.Object
  extended by javax.xml.stream.XMLOutputFactory
      extended by com.sun.xml.stream.ZephyrWriterFactory

public class ZephyrWriterFactory
extends javax.xml.stream.XMLOutputFactory

This class provides the implementation of XMLOutputFactory.

As long as fReuseInstance is off, this implementation is thread-safe, and the create methods can be invoked concurrently from multiple threads safely. TODO: revisit if the instance reuse really makes sense.

Author:
Neeraj Bajaj,, k.venugopal@sun.com

Field Summary
 
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
 
Constructor Summary
ZephyrWriterFactory()
           
 
Method Summary
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream outputStream)
           
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream outputStream, java.lang.String encoding)
           
 javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
           
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer writer)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream outputStream)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream outputStream, java.lang.String encoding)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer writer)
           
 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
newFactory, newFactory, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZephyrWriterFactory

public ZephyrWriterFactory()
Method Detail

createXMLEventWriter

public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream outputStream)
                                                     throws javax.xml.stream.XMLStreamException
Specified by:
createXMLEventWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

createXMLEventWriter

public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream outputStream,
                                                            java.lang.String encoding)
                                                     throws javax.xml.stream.XMLStreamException
Specified by:
createXMLEventWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

createXMLEventWriter

public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
                                                     throws javax.xml.stream.XMLStreamException
Specified by:
createXMLEventWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

createXMLEventWriter

public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer writer)
                                                     throws javax.xml.stream.XMLStreamException
Specified by:
createXMLEventWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

createXMLStreamWriter

public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
                                                       throws javax.xml.stream.XMLStreamException
Specified by:
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

createXMLStreamWriter

public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer writer)
                                                       throws javax.xml.stream.XMLStreamException
Specified by:
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

createXMLStreamWriter

public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream outputStream)
                                                       throws javax.xml.stream.XMLStreamException
Specified by:
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

createXMLStreamWriter

public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream outputStream,
                                                              java.lang.String encoding)
                                                       throws javax.xml.stream.XMLStreamException
Specified by:
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactory
Throws:
javax.xml.stream.XMLStreamException

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws java.lang.IllegalArgumentException
Specified by:
getProperty in class javax.xml.stream.XMLOutputFactory
Throws:
java.lang.IllegalArgumentException

isPropertySupported

public boolean isPropertySupported(java.lang.String name)
Specified by:
isPropertySupported in class javax.xml.stream.XMLOutputFactory

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws java.lang.IllegalArgumentException
Specified by:
setProperty in class javax.xml.stream.XMLOutputFactory
Throws:
java.lang.IllegalArgumentException


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.