Class AbstractXMLEncoder
- java.lang.Object
-
- org.apache.axis.components.encoding.AbstractXMLEncoder
-
- All Implemented Interfaces:
XMLEncoder
- Direct Known Subclasses:
DefaultXMLEncoder
public abstract class AbstractXMLEncoder extends java.lang.Object implements XMLEncoder
Abstract class for XML String encoders. The new encoding mechanism fixes the following bugs/issues: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15133 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15494 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19327- Author:
- Jens Schumann, Davanum Srinivas
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
AMP
protected static java.lang.String
CR
protected static java.lang.String
GREATER
protected static java.lang.String
LESS
protected static java.lang.String
LF
protected static java.lang.String
QUOTE
protected static java.lang.String
TAB
-
Constructor Summary
Constructors Constructor Description AbstractXMLEncoder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
encode(java.lang.String xmlString)
Encode a stringabstract java.lang.String
getEncoding()
gets the encoding supported by this encoderprotected java.lang.StringBuffer
getInitialByteArray(java.lang.String aXmlString, int pos)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.axis.components.encoding.XMLEncoder
writeEncoded
-
-
-
-
Field Detail
-
AMP
protected static final java.lang.String AMP
- See Also:
- Constant Field Values
-
QUOTE
protected static final java.lang.String QUOTE
- See Also:
- Constant Field Values
-
LESS
protected static final java.lang.String LESS
- See Also:
- Constant Field Values
-
GREATER
protected static final java.lang.String GREATER
- See Also:
- Constant Field Values
-
LF
protected static final java.lang.String LF
- See Also:
- Constant Field Values
-
CR
protected static final java.lang.String CR
- See Also:
- Constant Field Values
-
TAB
protected static final java.lang.String TAB
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncoding
public abstract java.lang.String getEncoding()
gets the encoding supported by this encoder- Specified by:
getEncoding
in interfaceXMLEncoder
- Returns:
- string
-
encode
public java.lang.String encode(java.lang.String xmlString)
Encode a string- Specified by:
encode
in interfaceXMLEncoder
- Parameters:
xmlString
- string to be encoded- Returns:
- encoded string
-
getInitialByteArray
protected java.lang.StringBuffer getInitialByteArray(java.lang.String aXmlString, int pos)
-
-