org.apache.tomcat.util.buf
Class C2BConverter
java.lang.Object
org.apache.tomcat.util.buf.C2BConverter
public final class C2BConverter
- extends Object
NIO based character encoder.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
encoder
protected CharsetEncoder encoder
bb
protected ByteBuffer bb
cb
protected CharBuffer cb
leftovers
protected CharBuffer leftovers
- Leftover buffer used for multi-characters characters.
C2BConverter
public C2BConverter(String encoding)
throws IOException
- Throws:
IOException
recycle
public void recycle()
- Reset the encoder state.
isUndeflow
public boolean isUndeflow()
convert
public void convert(CharChunk cc,
ByteChunk bc)
throws IOException
- Convert the given characters to bytes.
- Parameters:
cc
- char inputbc
- byte output
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.