org.apache.tomcat.util.buf

Class UTF8Decoder

public final class UTF8Decoder extends B2CConverter

Moved from ByteChunk - code to convert from UTF8 bytes to chars. Not used in the current tomcat3.3 : the performance gain is not very big if the String is created, only if we avoid that and work only on char[]. Until than, it's better to be safe. ( I tested this code with 2 and 3 bytes chars, and it works fine in xerces ) Cut from xerces' UTF8Reader.copyMultiByteCharData()

Author: Costin Manolache ( Xml-Xerces )

Constructor Summary
UTF8Decoder()
Method Summary
voidconvert(ByteChunk mb, CharChunk cb)
voidrecycle()

Constructor Detail

UTF8Decoder

public UTF8Decoder()

Method Detail

convert

public void convert(ByteChunk mb, CharChunk cb)

recycle

public void recycle()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.