com.atlassian.confluence.rpc.soap
Class ReplacingUTF16Encoder

java.lang.Object
  extended by org.apache.axis.components.encoding.AbstractXMLEncoder
      extended by com.atlassian.confluence.rpc.soap.ReplacingUTF16Encoder
All Implemented Interfaces:
org.apache.axis.components.encoding.XMLEncoder

public class ReplacingUTF16Encoder
extends org.apache.axis.components.encoding.AbstractXMLEncoder

UTF-16 Encoder that replaces illegal characters with the Unicode Replacement character "?". Compare with UTF16Encoder

Author:
Jens Schumann
See Also:
encoding.org, UTF 16 explained

Field Summary
 
Fields inherited from class org.apache.axis.components.encoding.AbstractXMLEncoder
AMP, CR, GREATER, LESS, LF, QUOTE, TAB
 
Constructor Summary
ReplacingUTF16Encoder()
           
 
Method Summary
 java.lang.String getEncoding()
          gets the encoding supported by this encoder
 void writeEncoded(java.io.Writer writer, java.lang.String xmlString)
          write the encoded version of a given string
 
Methods inherited from class org.apache.axis.components.encoding.AbstractXMLEncoder
encode, getInitialByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplacingUTF16Encoder

public ReplacingUTF16Encoder()
Method Detail

getEncoding

public java.lang.String getEncoding()
gets the encoding supported by this encoder

Specified by:
getEncoding in interface org.apache.axis.components.encoding.XMLEncoder
Specified by:
getEncoding in class org.apache.axis.components.encoding.AbstractXMLEncoder
Returns:
string

writeEncoded

public void writeEncoded(java.io.Writer writer,
                         java.lang.String xmlString)
                  throws java.io.IOException
write the encoded version of a given string

Parameters:
writer - writer to write this string to
xmlString - string to be encoded
Throws:
java.io.IOException


Copyright © 2003-2010 Atlassian. All Rights Reserved.