public class GenericDecoder extends Decoder
Modifier and Type | Field and Description |
---|---|
protected java.nio.charset.CharsetDecoder |
_decoder |
_hasError, _isAllowMalformedOut, _isIgnoreErrors, _isReplaceUnicode, _replacement
Constructor and Description |
---|
GenericDecoder(java.lang.String charsetName) |
Modifier and Type | Method and Description |
---|---|
void |
decodeUnicode(StringValue str,
UnicodeBuilderValue sb) |
protected boolean |
fill(UnicodeBuilderValue sb,
java.nio.ByteBuffer in,
java.nio.CharBuffer out,
java.nio.charset.CoderResult coder) |
boolean |
isDecodable(Env env,
StringValue str) |
void |
reset() |
create, decode, decodeUnicode, hasError, isIgnoreErrors, isUtf8, setAllowMalformedOut, setIgnoreErrors, setReplacement, setReplaceUnicode
public boolean isDecodable(Env env, StringValue str)
isDecodable
in class Decoder
public void decodeUnicode(StringValue str, UnicodeBuilderValue sb)
decodeUnicode
in class Decoder
protected boolean fill(UnicodeBuilderValue sb, java.nio.ByteBuffer in, java.nio.CharBuffer out, java.nio.charset.CoderResult coder)