com.atlassian.confluence.rpc.soap
Class ReplacingUTF8Encoder

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

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

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

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

Field Summary
 
Fields inherited from class org.apache.axis.components.encoding.AbstractXMLEncoder
AMP, CR, GREATER, LESS, LF, QUOTE, TAB
 
Constructor Summary
ReplacingUTF8Encoder()
           
 
Method Summary
 String getEncoding()
          gets the encoding supported by this encoder
 void writeEncoded(Writer writer, 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

ReplacingUTF8Encoder

public ReplacingUTF8Encoder()
Method Detail

getEncoding

public 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(Writer writer,
                         String xmlString)
                  throws IOException
write the encoded version of a given string

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


Copyright © 2003-2011 Atlassian. All Rights Reserved.