| java.lang.Object sun.io.CharToByteConverter sun.io.CharToByteUTF8
CharToByteUTF8 | public class CharToByteUTF8 extends CharToByteConverter (Code) | | UCS2 (UTF16) -> UCS Transformation Format 8 (UTF-8) converter
It's represented like below.
# Bits Bit pattern
1 7 0xxxxxxx
2 11 110xxxxx 10xxxxxx
3 16 1110xxxx 10xxxxxx 10xxxxxx
4 21 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
5 26 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
6 31 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
UCS2 uses 1-3 / UTF16 uses 1-4 / UCS4 uses 1-6
|
canConvert | public boolean canConvert(char ch)(Code) | | |
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
getMaxBytesPerChar | public int getMaxBytesPerChar()(Code) | | |
reset | public void reset()(Code) | | |
Methods inherited from sun.io.CharToByteConverter | public boolean canConvert(char c)(Code)(Java Doc) abstract public int convert(char[] input, int inStart, int inEnd, byte[] output, int outStart, int outEnd) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException(Code)(Java Doc) public byte[] convertAll(char input) throws MalformedInputException(Code)(Java Doc) public int convertAny(char[] input, int inStart, int inEnd, byte[] output, int outStart, int outEnd) throws ConversionBufferFullException(Code)(Java Doc) abstract public int flush(byte[] output, int outStart, int outEnd) throws MalformedInputException, ConversionBufferFullException(Code)(Java Doc) public int flushAny(byte[] output, int outStart, int outEnd) throws ConversionBufferFullException(Code)(Java Doc) public int getBadInputLength()(Code)(Java Doc) abstract public String getCharacterEncoding()(Code)(Java Doc) public static CharToByteConverter getConverter(String encoding) throws UnsupportedEncodingException(Code)(Java Doc) public static CharToByteConverter getDefault()(Code)(Java Doc) abstract public int getMaxBytesPerChar()(Code)(Java Doc) public int nextByteIndex()(Code)(Java Doc) public int nextCharIndex()(Code)(Java Doc) abstract public void reset()(Code)(Java Doc) public void setSubstitutionBytes(byte[] newSubBytes) throws IllegalArgumentException(Code)(Java Doc) public void setSubstitutionMode(boolean doSub)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|