Package org.apache.tomcat.util.buf
Class C2BConverter
- java.lang.Object
- 
- org.apache.tomcat.util.buf.C2BConverter
 
- 
 public final class C2BConverter extends java.lang.ObjectNIO based character encoder.
- 
- 
Constructor SummaryConstructors Constructor Description C2BConverter(java.nio.charset.Charset charset)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconvert(java.nio.CharBuffer cc, java.nio.ByteBuffer bc)Convert the given characters to bytes.voidconvert(CharChunk cc, ByteChunk bc)Convert the given characters to bytes.java.nio.charset.CharsetgetCharset()booleanisUndeflow()voidrecycle()Reset the encoder state.
 
- 
- 
- 
Method Detail- 
recyclepublic void recycle() Reset the encoder state.
 - 
isUndeflowpublic boolean isUndeflow() 
 - 
convertpublic void convert(CharChunk cc, ByteChunk bc) throws java.io.IOException Convert the given characters to bytes.- Parameters:
- cc- char input
- bc- byte output
- Throws:
- java.io.IOException- An encoding error occurred
 
 - 
convertpublic void convert(java.nio.CharBuffer cc, java.nio.ByteBuffer bc) throws java.io.IOExceptionConvert the given characters to bytes.- Parameters:
- cc- char input
- bc- byte output
- Throws:
- java.io.IOException- An encoding error occurred
 
 - 
getCharsetpublic java.nio.charset.Charset getCharset() 
 
- 
 
-