public final class External8BitEncodingCore extends Object implements EncodingCore
Constructor and Description |
---|
External8BitEncodingCore(External8BitEncodingData resource) |
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) |
boolean |
isUnicodeCharacterSupported(int c) |
public External8BitEncodingCore(External8BitEncodingData resource)
public boolean isUnicodeCharacterSupported(int c)
isUnicodeCharacterSupported
in interface EncodingCore
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer)
encode
in interface EncodingCore
text
- buffer
- public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) throws EncodingException
encode
in interface EncodingCore
EncodingException
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer)
decode
in interface EncodingCore
public CodePointBuffer decode(ByteBuffer text, CodePointBuffer buffer, EncodingErrorType errorHandling)
decode
in interface EncodingCore