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 )
public UTF8Decoder()
public void recycle()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.