public class GenericEncoder extends Encoder
Modifier and Type | Field and Description |
---|---|
protected java.nio.charset.CharsetEncoder |
_encoder |
_isIgnore, _isReplaceUnicode, _replacement, ERROR_CHARACTER
Constructor and Description |
---|
GenericEncoder(java.lang.String charsetName) |
Modifier and Type | Method and Description |
---|---|
StringValue |
encode(StringValue sb,
java.lang.CharSequence str,
int start,
int end) |
protected boolean |
fill(StringValue sb,
java.nio.CharBuffer in,
java.nio.ByteBuffer out,
java.nio.charset.CoderResult coder) |
boolean |
isEncodable(StringValue str,
int start,
int end) |
void |
reset() |
create, encode, encode, encode, isIgnore, isUtf8, setIgnoreErrors, setReplacement, setReplaceUnicode
public boolean isEncodable(StringValue str, int start, int end)
isEncodable
in class Encoder
public StringValue encode(StringValue sb, java.lang.CharSequence str, int start, int end)
protected boolean fill(StringValue sb, java.nio.CharBuffer in, java.nio.ByteBuffer out, java.nio.charset.CoderResult coder)