|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.buf.B2CConverter
public class B2CConverter
NIO based character decoder.
Field Summary | |
---|---|
protected java.nio.ByteBuffer |
bb
|
protected java.nio.CharBuffer |
cb
|
protected java.nio.charset.CharsetDecoder |
decoder
|
protected java.nio.ByteBuffer |
leftovers
Leftover buffer used for incomplete characters. |
protected static org.jboss.logging.Logger |
log
|
Constructor Summary | |
---|---|
B2CConverter(java.lang.String charset)
Create a decoder for the specified charset. |
Method Summary | |
---|---|
void |
convert(ByteChunk bc,
CharChunk cc)
Convert the given bytes to characters. |
void |
recycle()
Reset the decoder state, and empty the leftover buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.jboss.logging.Logger log
protected java.nio.charset.CharsetDecoder decoder
protected java.nio.ByteBuffer bb
protected java.nio.CharBuffer cb
protected java.nio.ByteBuffer leftovers
Constructor Detail |
---|
public B2CConverter(java.lang.String charset) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void recycle()
public void convert(ByteChunk bc, CharChunk cc) throws java.io.IOException
bc
- byte inputcc
- char output
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |