org.apache.axis2.databinding.utils.writer
Class MTOMAwareXMLSerializer
java.lang.Object
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer
- All Implemented Interfaces:
- XMLStreamWriter, MTOMAwareXMLStreamWriter
public class MTOMAwareXMLSerializer
- extends Object
- implements MTOMAwareXMLStreamWriter
this class wrapps the existing xmlStreamWriter and implements the new method
writeDataHandler
Method Summary |
void |
close()
|
void |
flush()
|
NamespaceContext |
getNamespaceContext()
|
String |
getPrefix(String string)
|
Object |
getProperty(String string)
|
void |
setDefaultNamespace(String string)
|
void |
setNamespaceContext(NamespaceContext namespaceContext)
|
void |
setPrefix(String string,
String string1)
|
void |
writeAttribute(String string,
String string1)
|
void |
writeAttribute(String string,
String string1,
String string2)
|
void |
writeAttribute(String string,
String string1,
String string2,
String string3)
|
void |
writeCData(String string)
|
void |
writeCharacters(char[] chars,
int i,
int i1)
|
void |
writeCharacters(String string)
|
void |
writeComment(String string)
|
void |
writeDataHandler(DataHandler dataHandler)
|
void |
writeDefaultNamespace(String string)
|
void |
writeDTD(String string)
|
void |
writeEmptyElement(String string)
|
void |
writeEmptyElement(String string,
String string1)
|
void |
writeEmptyElement(String string,
String string1,
String string2)
|
void |
writeEndDocument()
|
void |
writeEndElement()
|
void |
writeEntityRef(String string)
|
void |
writeNamespace(String string,
String string1)
|
void |
writeProcessingInstruction(String string)
|
void |
writeProcessingInstruction(String string,
String string1)
|
void |
writeStartDocument()
|
void |
writeStartDocument(String string)
|
void |
writeStartDocument(String string,
String string1)
|
void |
writeStartElement(String string)
|
void |
writeStartElement(String string,
String string1)
|
void |
writeStartElement(String string,
String string1,
String string2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTOMAwareXMLSerializer
public MTOMAwareXMLSerializer(XMLStreamWriter xmlStreamWriter)
writeStartElement
public void writeStartElement(String string)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeStartElement
public void writeStartElement(String string,
String string1)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeStartElement
public void writeStartElement(String string,
String string1,
String string2)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeEmptyElement
public void writeEmptyElement(String string,
String string1)
throws XMLStreamException
- Specified by:
writeEmptyElement
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeEmptyElement
public void writeEmptyElement(String string,
String string1,
String string2)
throws XMLStreamException
- Specified by:
writeEmptyElement
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeEmptyElement
public void writeEmptyElement(String string)
throws XMLStreamException
- Specified by:
writeEmptyElement
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeEndElement
public void writeEndElement()
throws XMLStreamException
- Specified by:
writeEndElement
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeEndDocument
public void writeEndDocument()
throws XMLStreamException
- Specified by:
writeEndDocument
in interface XMLStreamWriter
- Throws:
XMLStreamException
close
public void close()
throws XMLStreamException
- Specified by:
close
in interface XMLStreamWriter
- Throws:
XMLStreamException
flush
public void flush()
throws XMLStreamException
- Specified by:
flush
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeAttribute
public void writeAttribute(String string,
String string1)
throws XMLStreamException
- Specified by:
writeAttribute
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeAttribute
public void writeAttribute(String string,
String string1,
String string2,
String string3)
throws XMLStreamException
- Specified by:
writeAttribute
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeAttribute
public void writeAttribute(String string,
String string1,
String string2)
throws XMLStreamException
- Specified by:
writeAttribute
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeNamespace
public void writeNamespace(String string,
String string1)
throws XMLStreamException
- Specified by:
writeNamespace
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeDefaultNamespace
public void writeDefaultNamespace(String string)
throws XMLStreamException
- Specified by:
writeDefaultNamespace
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeComment
public void writeComment(String string)
throws XMLStreamException
- Specified by:
writeComment
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeProcessingInstruction
public void writeProcessingInstruction(String string)
throws XMLStreamException
- Specified by:
writeProcessingInstruction
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeProcessingInstruction
public void writeProcessingInstruction(String string,
String string1)
throws XMLStreamException
- Specified by:
writeProcessingInstruction
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeCData
public void writeCData(String string)
throws XMLStreamException
- Specified by:
writeCData
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeDTD
public void writeDTD(String string)
throws XMLStreamException
- Specified by:
writeDTD
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeEntityRef
public void writeEntityRef(String string)
throws XMLStreamException
- Specified by:
writeEntityRef
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeStartDocument
public void writeStartDocument()
throws XMLStreamException
- Specified by:
writeStartDocument
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeStartDocument
public void writeStartDocument(String string)
throws XMLStreamException
- Specified by:
writeStartDocument
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeStartDocument
public void writeStartDocument(String string,
String string1)
throws XMLStreamException
- Specified by:
writeStartDocument
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeCharacters
public void writeCharacters(String string)
throws XMLStreamException
- Specified by:
writeCharacters
in interface XMLStreamWriter
- Throws:
XMLStreamException
writeCharacters
public void writeCharacters(char[] chars,
int i,
int i1)
throws XMLStreamException
- Specified by:
writeCharacters
in interface XMLStreamWriter
- Throws:
XMLStreamException
getPrefix
public String getPrefix(String string)
throws XMLStreamException
- Specified by:
getPrefix
in interface XMLStreamWriter
- Throws:
XMLStreamException
setPrefix
public void setPrefix(String string,
String string1)
throws XMLStreamException
- Specified by:
setPrefix
in interface XMLStreamWriter
- Throws:
XMLStreamException
setDefaultNamespace
public void setDefaultNamespace(String string)
throws XMLStreamException
- Specified by:
setDefaultNamespace
in interface XMLStreamWriter
- Throws:
XMLStreamException
setNamespaceContext
public void setNamespaceContext(NamespaceContext namespaceContext)
throws XMLStreamException
- Specified by:
setNamespaceContext
in interface XMLStreamWriter
- Throws:
XMLStreamException
getNamespaceContext
public NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext
in interface XMLStreamWriter
getProperty
public Object getProperty(String string)
throws IllegalArgumentException
- Specified by:
getProperty
in interface XMLStreamWriter
- Throws:
IllegalArgumentException
writeDataHandler
public void writeDataHandler(DataHandler dataHandler)
throws XMLStreamException
- Specified by:
writeDataHandler
in interface MTOMAwareXMLStreamWriter
- Throws:
XMLStreamException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.