| java.lang.Object sun.io.CharToByteConverter sun.io.CharToByteDoubleByte
All known Subclasses: sun.io.CharToByteJIS0208, sun.io.CharToByteBig5, sun.io.CharToByteJohab, sun.io.CharToByteEUC_KR, sun.io.CharToByteEUC_CN, sun.io.CharToByteJIS0212, sun.io.CharToByteGBK,
Method Summary | |
public boolean | canConvert(char ch) | protected int | convSingleByte(char inputChar, byte[] outputByte) | public int | convert(char[] input, int inOff, int inEnd, byte[] output, int outOff, int outEnd) Converts characters to sequences of bytes. | public int | flush(byte[] output, int outStart, int outEnd) | public int | getMaxBytesPerChar() | protected int | getNative(char ch) | public void | reset() Resets the converter. |
badInputLength | protected int badInputLength(Code) | | |
highHalfZoneCode | protected char highHalfZoneCode(Code) | | |
index1 | protected short index1(Code) | | |
canConvert | public boolean canConvert(char ch)(Code) | | Return whether a character is mappable or not
true if a character is mappable |
convSingleByte | protected int convSingleByte(char inputChar, byte[] outputByte)(Code) | | |
convert | public int convert(char[] input, int inOff, int inEnd, byte[] output, int outOff, int outEnd) throws MalformedInputException, UnknownCharacterException, ConversionBufferFullException(Code) | | Converts characters to sequences of bytes.
Conversions that result in Exceptions can be restarted by calling
convert again, with appropriately modified parameters.
the characters written to output. Parameters: input - char array containing text in Unicode Parameters: inStart - offset in input array Parameters: inEnd - offset of last byte to be converted Parameters: output - byte array to receive conversion result Parameters: outStart - starting offset Parameters: outEnd - offset of last byte to be written to |
getMaxBytesPerChar | public int getMaxBytesPerChar()(Code) | | the maximum number of bytes needed to hold a converted char
|
getNative | protected int getNative(char ch)(Code) | | |
reset | public void reset()(Code) | | Resets the converter.
Call this method to reset the converter to its initial state
|
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)
|
|
|