Class C2BConverter
java.lang.Object
org.apache.tomcat.util.buf.C2BConverter
NIO based character encoder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvert(CharBuffer cc, ByteBuffer bc) Convert the given characters to bytes.voidConvert the given characters to bytes.booleanbooleanvoidrecycle()Reset the encoder state.
-
Constructor Details
-
C2BConverter
-
-
Method Details
-
recycle
public void recycle()Reset the encoder state. -
isUnderflow
public boolean isUnderflow() -
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
-