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.StringAMPprotected static java.lang.StringCRprotected static java.lang.StringGREATERprotected static java.lang.StringLESSprotected static java.lang.StringLFprotected static java.lang.StringQUOTEprotected static java.lang.StringTAB
-
Constructor Summary
Constructors Constructor Description AbstractXMLEncoder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Stringencode(java.lang.String xmlString)Encode a stringabstract java.lang.StringgetEncoding()gets the encoding supported by this encoderprotected java.lang.StringBuffergetInitialByteArray(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:
getEncodingin interfaceXMLEncoder- Returns:
- string
-
encode
public java.lang.String encode(java.lang.String xmlString)
Encode a string- Specified by:
encodein interfaceXMLEncoder- Parameters:
xmlString- string to be encoded- Returns:
- encoded string
-
getInitialByteArray
protected java.lang.StringBuffer getInitialByteArray(java.lang.String aXmlString, int pos)
-
-