public class

CharsetTranscoder

extends Object
implements ICharsetTranscoder
java.lang.Object
   ↳ com.microstrategy.web.app.transforms.CharsetTranscoder

Summary

Public Constructors
CharsetTranscoder()
Public Methods
void encode(MarkupOutput mo, CharBuffer charBuff)
void transcode(MarkupOutput mo, String decodeName, String encodeName, byte[] data)
Used to encode the data as the charset specified.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.web.app.transforms.ICharsetTranscoder

Public Constructors

public CharsetTranscoder ()

Public Methods

public void encode (MarkupOutput mo, CharBuffer charBuff)

Throws
CharacterCodingException

public void transcode (MarkupOutput mo, String decodeName, String encodeName, byte[] data)

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.

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
IllegalArgumentException if an error occurs when appending data to the markup output
IllegalStateException if an error occurs when appending data to the markup output
UnsupportedEncodingException if an error occurs when appending data to the markup output