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