org.apache.axis2.jaxws.message.util
Class XMLStreamWriterWithOS
java.lang.Object
org.apache.axis2.jaxws.message.util.XMLStreamWriterWithOS
- All Implemented Interfaces:
- javax.xml.stream.XMLStreamWriter
public class XMLStreamWriterWithOS
- extends java.lang.Object
- implements javax.xml.stream.XMLStreamWriter
XMLStreamReader that exposes direct access to the OutputStream.
Writing to the output stream is faster in some cases.
Method Summary |
void |
close()
|
void |
flush()
|
javax.xml.namespace.NamespaceContext |
getNamespaceContext()
|
java.io.OutputStream |
getOutputStream()
If this XMLStreamWriter is connected to an OutputStream
then the OutputStream is returned. |
java.lang.String |
getPrefix(java.lang.String arg0)
|
java.lang.Object |
getProperty(java.lang.String arg0)
|
void |
setDefaultNamespace(java.lang.String arg0)
|
void |
setNamespaceContext(javax.xml.namespace.NamespaceContext arg0)
|
void |
setPrefix(java.lang.String arg0,
java.lang.String arg1)
|
void |
writeAttribute(java.lang.String arg0,
java.lang.String arg1)
|
void |
writeAttribute(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
|
void |
writeAttribute(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
|
void |
writeCData(java.lang.String arg0)
|
void |
writeCharacters(char[] arg0,
int arg1,
int arg2)
|
void |
writeCharacters(java.lang.String arg0)
|
void |
writeComment(java.lang.String arg0)
|
void |
writeDefaultNamespace(java.lang.String arg0)
|
void |
writeDTD(java.lang.String arg0)
|
void |
writeEmptyElement(java.lang.String arg0)
|
void |
writeEmptyElement(java.lang.String arg0,
java.lang.String arg1)
|
void |
writeEmptyElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
|
void |
writeEndDocument()
|
void |
writeEndElement()
|
void |
writeEntityRef(java.lang.String arg0)
|
void |
writeNamespace(java.lang.String arg0,
java.lang.String arg1)
|
void |
writeProcessingInstruction(java.lang.String arg0)
|
void |
writeProcessingInstruction(java.lang.String arg0,
java.lang.String arg1)
|
void |
writeStartDocument()
|
void |
writeStartDocument(java.lang.String arg0)
|
void |
writeStartDocument(java.lang.String arg0,
java.lang.String arg1)
|
void |
writeStartElement(java.lang.String arg0)
|
void |
writeStartElement(java.lang.String arg0,
java.lang.String arg1)
|
void |
writeStartElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLStreamWriterWithOS
public XMLStreamWriterWithOS(java.io.OutputStream os,
java.lang.String charSetEncoding)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
close
public void close()
throws javax.xml.stream.XMLStreamException
- Specified by:
close
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
flush
public void flush()
throws javax.xml.stream.XMLStreamException
- Specified by:
flush
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
getNamespaceContext
public javax.xml.namespace.NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext
in interface javax.xml.stream.XMLStreamWriter
getPrefix
public java.lang.String getPrefix(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
getPrefix
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
getProperty
public java.lang.Object getProperty(java.lang.String arg0)
throws java.lang.IllegalArgumentException
- Specified by:
getProperty
in interface javax.xml.stream.XMLStreamWriter
- Throws:
java.lang.IllegalArgumentException
setDefaultNamespace
public void setDefaultNamespace(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
setDefaultNamespace
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
setNamespaceContext
public void setNamespaceContext(javax.xml.namespace.NamespaceContext arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
setNamespaceContext
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
setPrefix
public void setPrefix(java.lang.String arg0,
java.lang.String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
setPrefix
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeAttribute
public void writeAttribute(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAttribute
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeAttribute
public void writeAttribute(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAttribute
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeAttribute
public void writeAttribute(java.lang.String arg0,
java.lang.String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAttribute
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeCData
public void writeCData(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeCData
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeCharacters
public void writeCharacters(char[] arg0,
int arg1,
int arg2)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeCharacters
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeCharacters
public void writeCharacters(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeCharacters
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeComment
public void writeComment(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeComment
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeDefaultNamespace
public void writeDefaultNamespace(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeDefaultNamespace
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeDTD
public void writeDTD(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeDTD
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEmptyElement
public void writeEmptyElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEmptyElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEmptyElement
public void writeEmptyElement(java.lang.String arg0,
java.lang.String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEmptyElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEmptyElement
public void writeEmptyElement(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEmptyElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEndDocument
public void writeEndDocument()
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEndDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEndElement
public void writeEndElement()
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEndElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEntityRef
public void writeEntityRef(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEntityRef
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeNamespace
public void writeNamespace(java.lang.String arg0,
java.lang.String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeNamespace
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeProcessingInstruction
public void writeProcessingInstruction(java.lang.String arg0,
java.lang.String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeProcessingInstruction
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeProcessingInstruction
public void writeProcessingInstruction(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeProcessingInstruction
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartDocument
public void writeStartDocument()
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartDocument
public void writeStartDocument(java.lang.String arg0,
java.lang.String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartDocument
public void writeStartDocument(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartElement
public void writeStartElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartElement
public void writeStartElement(java.lang.String arg0,
java.lang.String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartElement
public void writeStartElement(java.lang.String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
getOutputStream
public java.io.OutputStream getOutputStream()
throws javax.xml.stream.XMLStreamException
- If this XMLStreamWriter is connected to an OutputStream
then the OutputStream is returned. This allows a node
(perhaps an OMSourcedElement) to write its content
directly to the OutputStream.
- Returns:
- OutputStream or null
- Throws:
javax.xml.stream.XMLStreamException
Copyright © 2007 Apache Web Services Project. All Rights Reserved.