java.nio.charset
public abstract class CharsetEncoder extends Object
Since: 1.4
| Constructor Summary | |
|---|---|
| protected | CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar) |
| protected | CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) |
| Method Summary | |
|---|---|
| float | averageBytesPerChar() |
| boolean | canEncode(char c) |
| boolean | canEncode(CharSequence cs) |
| Charset | charset() |
| ByteBuffer | encode(CharBuffer in) |
| CoderResult | encode(CharBuffer in, ByteBuffer out, boolean endOfInput) |
| protected abstract CoderResult | encodeLoop(CharBuffer in, ByteBuffer out) |
| CoderResult | flush(ByteBuffer out) |
| protected CoderResult | implFlush(ByteBuffer out) |
| protected void | implOnMalformedInput(CodingErrorAction newAction) |
| protected void | implOnUnmappableCharacter(CodingErrorAction newAction) |
| protected void | implReplaceWith(byte[] newReplacement) |
| protected void | implReset() |
| boolean | isLegalReplacement(byte[] replacement) |
| CodingErrorAction | malformedInputAction() |
| float | maxBytesPerChar() |
| CharsetEncoder | onMalformedInput(CodingErrorAction newAction) |
| CharsetEncoder | onUnmappableCharacter(CodingErrorAction newAction) |
| byte[] | replacement() |
| CharsetEncoder | replaceWith(byte[] newReplacement) |
| CharsetEncoder | reset() |
| CodingErrorAction | unmappableCharacterAction() |