| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final char | |
| private static final byte | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canEncode()
Overrides java. Tells whether or not this charset supports encoding. |
| public boolean | contains(Charset cs)
Implements abstract java. Tells whether or not this charset contains the given charset. |
| public String | |
| 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. |
| ISO_ESC | back to summary |
|---|---|
| private static final byte ISO_ESC | |
| ISO_SI | back to summary |
|---|---|
| private static final byte ISO_SI | |
| ISO_SO | back to summary |
|---|---|
| private static final byte ISO_SO | |
| ISO_SS2_7 | back to summary |
|---|---|
| private static final byte ISO_SS2_7 | |
| ISO_SS3_7 | back to summary |
|---|---|
| private static final byte ISO_SS3_7 | |
| MSB | back to summary |
|---|---|
| private static final byte MSB | |
| REPLACE_CHAR | back to summary |
|---|---|
| private static final char REPLACE_CHAR | |
| SODesigCNS | back to summary |
|---|---|
| private static final byte SODesigCNS | |
| SODesigGB | back to summary |
|---|---|
| private static final byte SODesigGB | |
| ISO2022_CN | back to summary |
|---|---|
| public ISO2022_CN() | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode() Overrides java. Doc from java. Tells whether or not this charset supports encoding. Nearly all charsets support encoding. The primary exceptions are
special-purpose auto-detect charsets whose decoders can determine
which of several possible encoding schemes is in use by examining the
input byte sequence. Such charsets do not support encoding because
there is no way to determine which encoding should be used on output.
Implementations of such charsets should override this method to return
| |
| 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 | |
| historicalName | back to summary |
|---|---|
| public String historicalName() Implements sun. | |
| 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 byte | |
| private static final DoubleByte. | |
| private boolean |
| Modifier and Type | Method and Description |
|---|---|
| private char | |
| private CoderResult | |
| private CoderResult | |
| protected CoderResult | decodeLoop(ByteBuffer src, CharBuffer dst)
Implements abstract java. Decodes one or more bytes into one or more characters. |
| protected void | implReset()
Overrides java. Resets this decoder, clearing any charset-specific internal state. |
| private char |
| currentSODesig | back to summary |
|---|---|
| private byte currentSODesig | |
| GB2312 | back to summary |
|---|---|
| private static final DoubleByte. | |
| shiftOut | back to summary |
|---|---|
| private boolean shiftOut | |
| Decoder | back to summary |
|---|---|
| pack-priv Decoder(Charset cs) | |
| cnsDecode | back to summary |
|---|---|
| private char cnsDecode(byte byte1, byte byte2, byte SS) | |
| decodeArrayLoop | back to summary |
|---|---|
| private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) | |
| decodeBufferLoop | back to summary |
|---|---|
| private CoderResult decodeBufferLoop(ByteBuffer src, CharBuffer dst) | |
| 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 | |
| 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. | |
| SODecode | back to summary |
|---|---|
| private char SODecode(byte byte1, byte byte2, byte SOD) | |