boolean
|
canConvert(char c)
Returns true if the given character can be converted to the
target character encoding.
|
abstract
int
|
convert(char[] input, int inStart, int inEnd, byte[] output, int outStart, int outEnd)
Converts an array of Unicode characters into an array of bytes
in the target character encoding.
|
byte[]
|
convertAll(char[] input)
Converts an array of Unicode characters into an array of bytes
in the target character encoding.
|
int
|
convertAny(char[] input, int inStart, int inEnd, byte[] output, int outStart, int outEnd)
|
abstract
int
|
flush(byte[] output, int outStart, int outEnd)
Writes any remaining output to the output buffer and resets the
converter to its initial state.
|
int
|
flushAny(byte[] output, int outStart, int outEnd)
Writes any remaining output to the output buffer and resets the
converter to its initial state.
|
int
|
getBadInputLength()
Returns the length, in chars, of the input which caused a
MalformedInputException.
|
abstract
String
|
getCharacterEncoding()
Returns the character set id for the conversion.
|
static
CharToByteConverter
|
getConverter(String encoding)
Returns appropriate CharToByteConverter subclass instance.
|
static
CharToByteConverter
|
getDefault()
Create an instance of the default CharToByteConverter subclass.
|
abstract
int
|
getMaxBytesPerChar()
Returns the maximum number of bytes needed to convert a char.
|
int
|
nextByteIndex()
Returns the index of the byte just past the last byte written by
the previous call to convert.
|
int
|
nextCharIndex()
Returns the index of the character just past
the last character successfully converted by the previous call
to convert.
|
abstract
void
|
reset()
Resets converter to its initial state.
|
void
|
setSubstitutionBytes(byte[] newSubBytes)
Sets the substitution bytes to use when the converter is in
substitution mode.
|
void
|
setSubstitutionMode(boolean doSub)
Sets converter into substitution mode.
|
String
|
toString()
Returns a string representation of the class.
|