com.atlassian.confluence.rpc.soap
Class ReplacingUTF8Encoder
java.lang.Object
org.apache.axis.components.encoding.AbstractXMLEncoder
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
Fields inherited from class org.apache.axis.components.encoding.AbstractXMLEncoder |
AMP, CR, GREATER, LESS, LF, QUOTE, TAB |
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 |
ReplacingUTF8Encoder
public ReplacingUTF8Encoder()
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 toxmlString
- string to be encoded
- Throws:
IOException
Copyright © 2003-2013 Atlassian. All Rights Reserved.