org.apache.axis.components.encoding

Class AbstractXMLEncoder

public abstract class AbstractXMLEncoder extends 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
protected static StringAMP
protected static StringCR
protected static StringGREATER
protected static StringLESS
protected static StringLF
protected static StringQUOTE
protected static StringTAB
Method Summary
Stringencode(String xmlString)
Encode a string
abstract StringgetEncoding()
gets the encoding supported by this encoder
protected StringBuffergetInitialByteArray(String aXmlString, int pos)

Field Detail

AMP

protected static final String AMP

CR

protected static final String CR

GREATER

protected static final String GREATER

LESS

protected static final String LESS

LF

protected static final String LF

QUOTE

protected static final String QUOTE

TAB

protected static final String TAB

Method Detail

encode

public String encode(String xmlString)
Encode a string

Parameters: xmlString string to be encoded

Returns: encoded string

getEncoding

public abstract String getEncoding()
gets the encoding supported by this encoder

Returns: string

getInitialByteArray

protected StringBuffer getInitialByteArray(String aXmlString, int pos)
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.