public class ByteToCharWriter extends AbstractByteToChar
ByteToChar converter = new ByteToChar(); converter.setEncoding("utf-8"); converter.clear(); converter.addChar('H'); converter.addByte(0xc0); converter.addByte(0xb8); String value = converter.getConvertedString();
Modifier and Type | Method and Description |
---|---|
protected void |
outputChar(int ch) |
void |
setWriter(java.io.Writer writer)
Sets the writer.
|
addByte, addChar, clear, flush, read, setEncoding
public void setWriter(java.io.Writer writer)
protected void outputChar(int ch) throws java.io.IOException
outputChar
in class AbstractByteToChar
java.io.IOException