public final class ExternalEncoding extends Object implements Encoding
Constructor and Description |
---|
ExternalEncoding(String name,
EncodingCore core,
Resource 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) |
String |
getName() |
String |
getName(Locale locale) |
Resource |
getResource() |
boolean |
isUnicodeCharacterSupported(int c) |
public ExternalEncoding(String name, EncodingCore core, Resource resource)
public boolean isUnicodeCharacterSupported(int c)
isUnicodeCharacterSupported
in interface EncodingCore
public Resource getResource()
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer) throws EncodingException
EncodingCore
encode
in interface EncodingCore
EncodingException
public ByteBuffer encode(CodePointBuffer text, ByteBuffer buffer, EncodingErrorType errorHandling) throws EncodingException
encode
in interface EncodingCore
EncodingException
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
Copyright © 2018 Hitachi Vantara. All rights reserved.