| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final short[] | |
| pack-priv static String[] | |
| private static final short[] | |
| pack-priv static String[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final short[] | |
| pack-priv static String[] | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| pack-priv static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(Charset cs)
Implements abstract java. Tells whether or not this charset contains the given charset. |
| public CharsetDecoder | newDecoder()
Implements abstract java. Constructs a new decoder for this charset. |
| public CharsetEncoder | newEncoder()
Implements abstract java. Constructs a new encoder for this charset. |
| decoderIndex1 | back to summary |
|---|---|
| private static final short[] decoderIndex1 | |
| decoderIndex2 | back to summary |
|---|---|
| pack-priv static String[] decoderIndex2 | |
| encoderIndex1 | back to summary |
|---|---|
| private static final short[] encoderIndex1 | |
| encoderIndex2 | back to summary |
|---|---|
| pack-priv static String[] encoderIndex2 | |
| GB18030_DOUBLE_BYTE | back to summary |
|---|---|
| private static final int GB18030_DOUBLE_BYTE | |
| GB18030_FOUR_BYTE | back to summary |
|---|---|
| private static final int GB18030_FOUR_BYTE | |
| GB18030_SINGLE_BYTE | back to summary |
|---|---|
| private static final int GB18030_SINGLE_BYTE | |
| index1 | back to summary |
|---|---|
| pack-priv static final short[] index1 | |
| index2 | back to summary |
|---|---|
| pack-priv static String[] index2 | |
| innerDecoderIndex0 | back to summary |
|---|---|
| private static final String innerDecoderIndex0 | |
| innerDecoderIndex1 | back to summary |
|---|---|
| private static final String innerDecoderIndex1 | |
| innerDecoderIndex2 | back to summary |
|---|---|
| private static final String innerDecoderIndex2 | |
| innerDecoderIndex3 | back to summary |
|---|---|
| private static final String innerDecoderIndex3 | |
| innerDecoderIndex4 | back to summary |
|---|---|
| private static final String innerDecoderIndex4 | |
| innerDecoderIndex5 | back to summary |
|---|---|
| private static final String innerDecoderIndex5 | |
| innerEncoderIndex0 | back to summary |
|---|---|
| private static final String innerEncoderIndex0 | |
| innerEncoderIndex1 | back to summary |
|---|---|
| private static final String innerEncoderIndex1 | |
| innerEncoderIndex10 | back to summary |
|---|---|
| private static final String innerEncoderIndex10 | |
| innerEncoderIndex11 | back to summary |
|---|---|
| private static final String innerEncoderIndex11 | |
| innerEncoderIndex12 | back to summary |
|---|---|
| private static final String innerEncoderIndex12 | |
| innerEncoderIndex2 | back to summary |
|---|---|
| private static final String innerEncoderIndex2 | |
| innerEncoderIndex3 | back to summary |
|---|---|
| private static final String innerEncoderIndex3 | |
| innerEncoderIndex4 | back to summary |
|---|---|
| private static final String innerEncoderIndex4 | |
| innerEncoderIndex5 | back to summary |
|---|---|
| private static final String innerEncoderIndex5 | |
| innerEncoderIndex6 | back to summary |
|---|---|
| private static final String innerEncoderIndex6 | |
| innerEncoderIndex7 | back to summary |
|---|---|
| private static final String innerEncoderIndex7 | |
| innerEncoderIndex8 | back to summary |
|---|---|
| private static final String innerEncoderIndex8 | |
| innerEncoderIndex9 | back to summary |
|---|---|
| private static final String innerEncoderIndex9 | |
| innerIndex0 | back to summary |
|---|---|
| private static final String innerIndex0 | |
| innerIndex1 | back to summary |
|---|---|
| private static final String innerIndex1 | |
| innerIndex2 | back to summary |
|---|---|
| private static final String innerIndex2 | |
| innerIndex3 | back to summary |
|---|---|
| private static final String innerIndex3 | |
| innerIndex4 | back to summary |
|---|---|
| private static final String innerIndex4 | |
| innerIndex5 | back to summary |
|---|---|
| private static final String innerIndex5 | |
| innerIndex6 | back to summary |
|---|---|
| private static final String innerIndex6 | |
| innerIndex7 | back to summary |
|---|---|
| private static final String innerIndex7 | |
| IS_2000 | back to summary |
|---|---|
| pack-priv static final boolean IS_2000 | |
| GB18030 | back to summary |
|---|---|
| public GB18030() | |
| contains | back to summary |
|---|---|
| public boolean contains(Charset cs) Implements abstract java. Doc from java. Tells whether or not this charset contains the given charset. A charset C is said to contain a charset D if, and only if, every character representable in D is also representable in C. If this relationship holds then it is guaranteed that every string that can be encoded in D can also be encoded in C without performing any replacements. That C contains D does not imply that each character representable in C by a particular byte sequence is represented in D by the same byte sequence, although sometimes this is the case. Every charset contains itself. This method computes an approximation of the containment relation:
If it returns | |
| newDecoder | back to summary |
|---|---|
| public CharsetDecoder newDecoder() Implements abstract java. Doc from java. Constructs a new decoder for this charset. | |
| newEncoder | back to summary |
|---|---|
| public CharsetEncoder newEncoder() Implements abstract java. Doc from java. Constructs a new encoder for this charset. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final char |
| Modifier and Type | Method and Description |
|---|---|
| private CoderResult | |
| private CoderResult | |
| protected char | |
| protected CoderResult | decodeLoop(ByteBuffer src, CharBuffer dst)
Implements abstract java. Decodes one or more bytes into one or more characters. |
| private char | |
| protected void | implReset()
Overrides java. Resets this decoder, clearing any charset-specific internal state. |
| currentState | back to summary |
|---|---|
| private int currentState | |
| REPLACE_CHAR | back to summary |
|---|---|
| private static final char REPLACE_CHAR | |
| Decoder | back to summary |
|---|---|
| private Decoder(Charset cs) | |
| decodeArrayLoop | back to summary |
|---|---|
| private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) | |
| decodeBufferLoop | back to summary |
|---|---|
| private CoderResult decodeBufferLoop(ByteBuffer src, CharBuffer dst) | |
| decodeDouble | back to summary |
|---|---|
| protected char decodeDouble(int byte1, int byte2) | |
| decodeLoop | back to summary |
|---|---|
| protected CoderResult decodeLoop(ByteBuffer src, CharBuffer dst) Implements abstract java. Doc from java. Decodes one or more bytes into one or more characters. This method encapsulates the basic decoding loop, decoding as many
bytes as possible until it either runs out of input, runs out of room
in the output buffer, or encounters a decoding 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 | |
| getChar | back to summary |
|---|---|
| private char getChar(int offset) | |
| implReset | back to summary |
|---|---|
| protected void implReset() Overrides java. Doc from java. Resets this decoder, clearing any charset-specific internal state. The default implementation of this method does nothing. This method should be overridden by decoders that maintain internal state. | |
| 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 CoderResult | encodeLoop(CharBuffer src, ByteBuffer dst)
Implements abstract java. Encodes one or more characters into one or more bytes. |
| private int | |
| protected void | implReset()
Overrides java. Resets this encoder, clearing any charset-specific internal state. |
| currentState | back to summary |
|---|---|
| private int currentState | |
| sgp | back to summary |
|---|---|
| private final Surrogate. | |
| Encoder | back to summary |
|---|---|
| private Encoder(Charset cs) | |
| 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) | |
| 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 | |
| getGB18030 | back to summary |
|---|---|
| private int getGB18030(short[] outerIndex, String[] innerEncoderIndex, char ch) | |
| 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. | |