| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.util.buf.B2CConverter
org.apache.tomcat.util.buf.UTF8Decoder
public final class UTF8Decoder
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()
| Constructor Summary | |
|---|---|
| UTF8Decoder() | |
| Method Summary | |
|---|---|
|  void | convert(ByteChunk mb,
        CharChunk cb)Convert a buffer of bytes into a chars | 
|  void | recycle()Reset the internal state, empty the buffers. | 
| Methods inherited from class org.apache.tomcat.util.buf.B2CConverter | 
|---|
| convert, getCharset, reset | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public UTF8Decoder()
| Method Detail | 
|---|
public void recycle()
B2CConverter
recycle in class B2CConverter
public void convert(ByteChunk mb,
                    CharChunk cb)
             throws java.io.IOException
B2CConverter
convert in class B2CConverterjava.io.IOException| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||