jd.io
Class CharToByteUtf8
java.lang.Object
jd.io.CharToByteConverter
jd.io.CharToByteUtf8
- public class CharToByteUtf8
- extends CharToByteConverter
An alternative to SUNs CharToByteUtf8-Converter.
CharToByteUtf8
public CharToByteUtf8()
flush
public int flush(byte[] output,
int outStart,
int outEnd)
throws CharConversionException
- Specified by:
flush
in class CharToByteConverter
- Throws:
CharConversionException
convert
public int convert(char[] input,
int inOff,
int inEnd,
byte[] output,
int outOff,
int outEnd)
throws ConversionBufferFullException,
CharConversionException
- Specified by:
convert
in class CharToByteConverter
- Throws:
ConversionBufferFullException
CharConversionException
canConvert
public boolean canConvert(char ch)
getMaxBytesPerChar
public int getMaxBytesPerChar()
- Specified by:
getMaxBytesPerChar
in class CharToByteConverter
reset
public void reset()
- Specified by:
reset
in class CharToByteConverter
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in class CharToByteConverter