| Modifier and Type | Field and Description |
|---|---|
| private final short[] | |
| private final String[] | |
| private final Surrogate. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| 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. |
| private CoderResult | |
| private CoderResult | |
| protected int | |
| protected CoderResult | encodeLoop(CharBuffer src, ByteBuffer dst)
Implements abstract java. Encodes one or more characters into one or more bytes. |
| protected int | |
| protected byte[] | encodeSurrogate(char highSurrogate, char lowSurrogate)
Protected method which should be overridden by concrete DBCS CharsetEncoder classes which included supplementary characters within their mapping coverage. |
| index1 | back to summary |
|---|---|
| private final short[] index1 | |
| index2 | back to summary |
|---|---|
| private final String[] index2 | |
| sgp | back to summary |
|---|---|
| private final Surrogate. | |
| DoubleByteEncoder | back to summary |
|---|---|
| protected DoubleByteEncoder(Charset cs, short[] index1, String[] index2) | |
| DoubleByteEncoder | back to summary |
|---|---|
| protected DoubleByteEncoder(Charset cs, short[] index1, String[] index2, float avg, float max) | |
| DoubleByteEncoder | back to summary |
|---|---|
| protected DoubleByteEncoder(Charset cs, short[] index1, String[] index2, byte[] repl) | |
| DoubleByteEncoder | back to summary |
|---|---|
| protected DoubleByteEncoder(Charset cs, short[] index1, String[] index2, byte[] repl, float avg, float max) | |
| 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.
| |
| encodeArrayLoop | back to summary |
|---|---|
| private CoderResult encodeArrayLoop(CharBuffer src, ByteBuffer dst) | |
| encodeBufferLoop | back to summary |
|---|---|
| private CoderResult encodeBufferLoop(CharBuffer src, ByteBuffer dst) | |
| encodeDouble | back to summary |
|---|---|
| protected int encodeDouble(char ch) | |
| 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
| |
| encodeSingle | back to summary |
|---|---|
| protected int encodeSingle(char inputChar) | |
| encodeSurrogate | back to summary |
|---|---|
| protected byte[] encodeSurrogate(char highSurrogate, char lowSurrogate) Protected method which should be overridden by concrete DBCS CharsetEncoder classes which included supplementary characters within their mapping coverage. null return value indicates surrogate values could not be handled or encoded. | |