public final class C2BConverter extends Object
Constructor and Description |
---|
C2BConverter(Charset charset) |
Modifier and Type | Method and Description |
---|---|
void |
convert(CharBuffer cc,
ByteBuffer bc)
Convert the given characters to bytes.
|
void |
convert(CharChunk cc,
ByteChunk bc)
Convert the given characters to bytes.
|
Charset |
getCharset() |
boolean |
isUndeflow() |
void |
recycle()
Reset the encoder state.
|
public C2BConverter(Charset charset)
public void recycle()
public boolean isUndeflow()
public void convert(CharChunk cc, ByteChunk bc) throws IOException
cc
- char inputbc
- byte outputIOException
- An encoding error occurredpublic void convert(CharBuffer cc, ByteBuffer bc) throws IOException
cc
- char inputbc
- byte outputIOException
- An encoding error occurredpublic Charset getCharset()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.