transcode
public void transcode(MarkupOutput mo,
java.lang.String decodeName,
java.lang.String encodeName,
byte[] data)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException,
java.io.UnsupportedEncodingException
Used to encode the data as the charset specified.
By default it encodes using standard Java methods but can be overwritten for special cases.
This method is only called if the charset requested is not "UnicodeLittle" as IServer sends the data in this charset.
- Specified by:
transcode
in interface ICharsetTranscoder
- Parameters:
mo
- The output object
decodeName
- the charset specified as supported by Java to decode the data
encodeName
- the charset to encode the data
data
- an array with the bytes as passed by IServer. These bytes are encoded using "UnicodeLittle".
- Throws:
java.lang.IllegalArgumentException
- if an error occurs when appending data to the markup output
java.lang.IllegalStateException
- if an error occurs when appending data to the markup output
java.io.UnsupportedEncodingException
- if an error occurs when appending data to the markup output