| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| 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 | |
| private static boolean | |
| 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. |
| EUCJP_KANA1_MASK | back to summary |
|---|---|
| private static final int EUCJP_KANA1_MASK | |
| EUCJP_KANA2_MASK | back to summary |
|---|---|
| private static final int EUCJP_KANA2_MASK | |
| EUCJP_MASK | back to summary |
|---|---|
| private static final int EUCJP_MASK | |
| SJIS1B_MASK | back to summary |
|---|---|
| private static final int SJIS1B_MASK | |
| SJIS2B_MASK | back to summary |
|---|---|
| private static final int SJIS2B_MASK | |
| JISAutoDetect | back to summary |
|---|---|
| public JISAutoDetect() | |
| 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. | |
| looksLikeJapanese | back to summary |
|---|---|
| private static boolean looksLikeJapanese(CharBuffer cb) | |
| 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 DelegatableDecoder | |
| private static final String | |
| private static final String |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private CoderResult | |
| protected CoderResult | decodeLoop(ByteBuffer src, CharBuffer dst)
Implements abstract java. Decodes one or more bytes into one or more characters. |
| public Charset | detectedCharset()
Overrides java. Retrieves the charset that was detected by this decoder (optional operation). |
| private static String | |
| protected CoderResult | |
| protected void | implReset()
Overrides java. Resets this decoder, clearing any charset-specific internal state. |
| public boolean | isAutoDetecting()
Overrides java. Tells whether or not this decoder implements an auto-detecting charset. |
| public boolean | isCharsetDetected()
Overrides java. Tells whether or not this decoder has yet detected a charset (optional operation). |
| private static boolean |
| detectedDecoder | back to summary |
|---|---|
| private DelegatableDecoder detectedDecoder | |
| EUCJPName | back to summary |
|---|---|
| private static final String EUCJPName | |
| SJISName | back to summary |
|---|---|
| private static final String SJISName | |
| Decoder | back to summary |
|---|---|
| public Decoder(Charset cs) | |
| copyLeadingASCII | back to summary |
|---|---|
| private static void copyLeadingASCII(ByteBuffer src, CharBuffer dst) | |
| decodeLoop | back to summary |
|---|---|
| private CoderResult decodeLoop(DelegatableDecoder decoder, 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 | |
| detectedCharset | back to summary |
|---|---|
| public Charset detectedCharset() Overrides java. Doc from java. Retrieves the charset that was detected by this decoder (optional operation). If this decoder implements an auto-detecting charset then this
method returns the actual charset once it has been detected. After that
point, this method returns the same value for the duration of the
current decoding operation. If not enough input bytes have yet been
read to determine the actual charset then this method throws an The default implementation of this method always throws an | |
| getSJISName | back to summary |
|---|---|
| private static String getSJISName() Returned Shift_JIS Charset name is OS dependent | |
| implFlush | back to summary |
|---|---|
| protected CoderResult implFlush(CharBuffer out) Overrides java. Doc from java. Flushes this decoder. The default implementation of this method does nothing, and always
returns | |
| 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. | |
| isAutoDetecting | back to summary |
|---|---|
| public boolean isAutoDetecting() Overrides java. Doc from java. Tells whether or not this decoder implements an auto-detecting charset. The default implementation of this method always returns
| |
| isCharsetDetected | back to summary |
|---|---|
| public boolean isCharsetDetected() Overrides java. Doc from java. Tells whether or not this decoder has yet detected a charset (optional operation). If this decoder implements an auto-detecting charset then at a
single point during a decoding operation this method may start returning
That this method returns The default implementation of this method always throws an | |
| isPlainASCII | back to summary |
|---|---|
| private static boolean isPlainASCII(byte b) | |