public class ByteToChar 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 |
|---|---|
int |
capacity() |
void |
clear()
Clears the converted
|
static ByteToChar |
create() |
java.lang.String |
getConvertedString()
Gets the converted string.
|
protected void |
outputChar(int ch) |
java.lang.String |
toString()
Prints the object.
|
addByte, addChar, flush, read, setEncodingpublic static ByteToChar create()
public void clear()
clear in class AbstractByteToCharpublic int capacity()
public java.lang.String getConvertedString()
throws java.io.IOException
java.io.IOExceptionprotected void outputChar(int ch)
outputChar in class AbstractByteToCharpublic java.lang.String toString()
toString in class java.lang.Object