abstract
int
|
convert(byte[] input, int inStart, int inEnd, char[] output, int outStart, int outEnd)
Converts an array of bytes containing characters in an external
encoding into an array of Unicode characters.
|
char[]
|
convertAll(byte[] input)
Converts an array of bytes containing characters in an external
encoding into an array of Unicode characters.
|
abstract
int
|
flush(char[] 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 bytes, of the input which caused a
MalformedInputException.
|
abstract
String
|
getCharacterEncoding()
Returns the character set id for the conversion
|
static
ByteToCharConverter
|
getConverter(String encoding)
Returns appropriate ByteToCharConverter subclass instance.
|
static
ByteToCharConverter
|
getDefault()
Create an instance of the default ByteToCharConverter subclass.
|
int
|
getMaxCharsPerByte()
Returns the maximum number of characters needed to convert a byte.
|
int
|
nextByteIndex()
Returns the index of the byte just past the last byte successfully
converted by the previous call to convert.
|
int
|
nextCharIndex()
Returns the index of the character just past the last character
written by the previous call to convert.
|
abstract
void
|
reset()
Resets converter to its initial state.
|
void
|
setSubstitutionChars(char[] c)
sets the substitution character to use
|
void
|
setSubstitutionMode(boolean doSub)
Sets converter into substitution mode.
|
String
|
toString()
returns a string representation of the character conversion
|