org.apache.axis.components.encoding

Class AbstractXMLEncoder

Implemented Interfaces:
XMLEncoder

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
Authors:
Jens Schumann
Davanum Srinivas

Field Summary

protected static String
AMP
protected static String
CR
protected static String
GREATER
protected static String
LESS
protected static String
LF
protected static String
QUOTE
protected static String
TAB

Method Summary

String
encode(String xmlString)
Encode a string
abstract String
getEncoding()
gets the encoding supported by this encoder
protected StringBuffer
getInitialByteArray(String aXmlString, int pos)

Field Details

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 Details

encode

public String encode(String xmlString)
Encode a string
Specified by:
encode in interface XMLEncoder
Parameters:
xmlString - string to be encoded
Returns:
encoded string

getEncoding

public abstract String getEncoding()
gets the encoding supported by this encoder
Specified by:
getEncoding in interface XMLEncoder
Returns:
string

getInitialByteArray

protected StringBuffer getInitialByteArray(String aXmlString,
                                           int pos)

Copyright © 2005 Apache Web Services Project. All Rights Reserved.