org.apache.axis.encoding
public class TextSerializationContext extends SerializationContext
log, startOfDocument| Constructor and Description |
|---|
TextSerializationContext(java.io.Writer writer) |
TextSerializationContext(java.io.Writer writer,
MessageContext msgContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement()
Writes the end element tag for the open element.
|
void |
serialize(QName elemQName,
org.xml.sax.Attributes attributes,
java.lang.Object value,
QName xmlType,
java.lang.Boolean sendNull,
java.lang.Boolean sendType)
Serialize the indicated value as an element with the name
indicated by elemQName.
|
void |
startElement(QName qName,
org.xml.sax.Attributes attributes)
Writes (using the Writer) the start tag for element QName along with the
indicated attributes and namespace mappings.
|
void |
writeChars(char[] p1,
int p2,
int p3)
Convenience operation to write out (to Writer) the characters
in p1 starting at index p2 for length p3.
|
void |
writeDOMElement(org.w3c.dom.Element el)
Output a DOM representation to a SerializationContext
|
void |
writeString(java.lang.String string)
Convenience operation to write out (to Writer) the String
|
attributeQName2String, getCurrentMessage, getCurrentXMLType, getDoMultiRefs, getEncoder, getEncoding, getEncodingStyle, getItemQName, getItemType, getMessageContext, getPrefixForURI, getPrefixForURI, getPrefixForURI, getPretty, getQNameForClass, getSerializerForJavaType, getTypeMapping, getTypeMappingRegistry, getValueAsString, isEncoded, isPrimitive, outputMultiRefs, qName2String, qName2String, registerPrefixForURI, serialize, serialize, serialize, setDoMultiRefs, setEncoding, setItemQName, setItemType, setPretty, setSendDecl, setTypeAttribute, setWriteXMLType, shouldSendXSIType, writeSafeString, writeXMLDeclarationpublic TextSerializationContext(java.io.Writer writer)
public TextSerializationContext(java.io.Writer writer,
MessageContext msgContext)
public void serialize(QName elemQName, org.xml.sax.Attributes attributes, java.lang.Object value, QName xmlType, java.lang.Boolean sendNull, java.lang.Boolean sendType) throws java.io.IOException
SerializationContextserialize in class SerializationContextelemQName - is the QName of the elementattributes - are additional attributesvalue - is the object to serializexmlType - is the qname of the type or null.sendNull - determines whether to send null values.sendType - determines whether to set xsi:type attribute.java.io.IOExceptionpublic void writeDOMElement(org.w3c.dom.Element el)
throws java.io.IOException
SerializationContextwriteDOMElement in class SerializationContextel - is a DOM Elementjava.io.IOExceptionpublic void startElement(QName qName, org.xml.sax.Attributes attributes) throws java.io.IOException
SerializationContextstartElement in class SerializationContextqName - is the name of the elementattributes - are the attributes to writejava.io.IOExceptionpublic void endElement()
throws java.io.IOException
SerializationContextendElement in class SerializationContextjava.io.IOExceptionpublic void writeChars(char[] p1,
int p2,
int p3)
throws java.io.IOException
SerializationContextwriteChars in class SerializationContextp1 - character array to writep2 - starting index in arrayp3 - length to writejava.io.IOExceptionpublic void writeString(java.lang.String string)
throws java.io.IOException
SerializationContextwriteString in class SerializationContextstring - is the String to write.java.io.IOExceptionCopyright ? 2005 Apache Web Services Project. All Rights Reserved.