| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected static final char | |
| private int | |
| protected static final int | |
| private boolean | |
| protected static final char | |
| private final Surrogate. | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canEncode(char c)
Overrides java. Tells whether or not this encoder can encode the given character. |
| public boolean | canEncode(CharSequence cs)
Overrides java. Tells whether or not this encoder can encode the given character sequence. |
| protected CoderResult | encodeLoop(CharBuffer src, ByteBuffer dst)
Implements abstract java. Encodes one or more characters into one or more bytes. |
| protected void | implReset()
Overrides java. Resets this encoder, clearing any charset-specific internal state. |
| private void |
| BIG | back to summary |
|---|---|
| protected static final int BIG | |
| BYTE_ORDER_MARK | back to summary |
|---|---|
| protected static final char BYTE_ORDER_MARK | |
| byteOrder | back to summary |
|---|---|
| private int byteOrder | |
| LITTLE | back to summary |
|---|---|
| protected static final int LITTLE | |
| needsMark | back to summary |
|---|---|
| private boolean needsMark | |
| REVERSED_MARK | back to summary |
|---|---|
| protected static final char REVERSED_MARK | |
| sgp | back to summary |
|---|---|
| private final Surrogate. | |
| usesMark | back to summary |
|---|---|
| private boolean usesMark | |
| UnicodeEncoder | back to summary |
|---|---|
| protected UnicodeEncoder(Charset cs, int bo, boolean m) | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(char c) Overrides java. Doc from java. Tells whether or not this encoder can encode the given character. This method returns This method may modify this encoder's state; it should therefore not be invoked if an encoding operation is already in progress. The default implementation of this method is not very efficient; it should generally be overridden to improve performance. | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(CharSequence cs) Overrides java. Doc from java. Tells whether or not this encoder can encode the given character sequence. If this method returns This method may modify this encoder's state; it should therefore not be invoked if an encoding operation is already in progress. The default implementation of this method is not very efficient; it should generally be overridden to improve performance. | |
| encodeLoop | back to summary |
|---|---|
| protected CoderResult encodeLoop(CharBuffer src, ByteBuffer dst) Implements abstract java. Doc from java. Encodes one or more characters into one or more bytes. This method encapsulates the basic encoding loop, encoding as many
characters as possible until it either runs out of input, runs out of room
in the output buffer, or encounters an encoding error. This method is
invoked by the The buffers are read from, and written to, starting at their current
positions. At most This method returns a An implementation of this method may perform arbitrary lookahead by
returning | |
| implReset | back to summary |
|---|---|
| protected void implReset() Overrides java. Doc from java. Resets this encoder, clearing any charset-specific internal state. The default implementation of this method does nothing. This method should be overridden by encoders that maintain internal state. | |
| put | back to summary |
|---|---|
| private void put(char c, ByteBuffer dst) | |