Package org.apache.tomcat.util.buf
Class C2BConverter
java.lang.Object
org.apache.tomcat.util.buf.C2BConverter
NIO based character encoder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convert
(CharBuffer cc, ByteBuffer bc) Convert the given characters to bytes.void
Convert the given characters to bytes.boolean
void
recycle()
Reset the encoder state.
-
Constructor Details
-
C2BConverter
-
-
Method Details
-
recycle
public void recycle()Reset the encoder state. -
isUndeflow
public boolean isUndeflow() -
convert
Convert the given characters to bytes.- Parameters:
cc
- char inputbc
- byte output- Throws:
IOException
- An encoding error occurred
-
convert
Convert the given characters to bytes.- Parameters:
cc
- char inputbc
- byte output- Throws:
IOException
- An encoding error occurred
-
getCharset
-