public class BuiltInJavaEncoding extends Object implements Encoding
Constructor and Description |
---|
BuiltInJavaEncoding(String name,
boolean fastMode) |
Modifier and Type | Method and Description |
---|---|
CodePointBuffer |
decode(ByteBuffer text,
CodePointBuffer buffer) |
CodePointBuffer |
decode(ByteBuffer text,
CodePointBuffer buffer,
EncodingErrorType errorHandling) |
ByteBuffer |
encode(CodePointBuffer text,
ByteBuffer buffer)
Encode, but ignore errors.
|
ByteBuffer |
encode(CodePointBuffer text,
ByteBuffer buffer,
EncodingErrorType errorHandling) |
String |
getName() |
String |
getName(Locale locale) |
boolean |
isUnicodeCharacterSupported(int c) |
public BuiltInJavaEncoding(String name, boolean fastMode)
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer) throws EncodingException
decode
in interface EncodingCore
EncodingException
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling) throws EncodingException
decode
in interface EncodingCore
EncodingException
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer) throws EncodingException
encode
in interface EncodingCore
text
- buffer
- EncodingException
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) throws EncodingException
encode
in interface EncodingCore
EncodingException
public boolean isUnicodeCharacterSupported(int c)
isUnicodeCharacterSupported
in interface EncodingCore