| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final char[] | |
| private static final JavaLangAccess |
| Access | Constructor and Description |
|---|---|
| public |
| B2C_UNMAPPABLE | back to summary |
|---|---|
| public static final char[] B2C_UNMAPPABLE | |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| DoubleByte | back to summary |
|---|---|
| public DoubleByte() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final char[][] | |
| pack-priv final char[] | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected CoderResult | |
| protected CoderResult | |
| public int | |
| protected CoderResult | |
| protected CoderResult | |
| public char | |
| public CoderResult | decodeLoop(ByteBuffer src, CharBuffer dst)
Implements abstract java. Implements sun. Decodes one or more bytes into one or more characters. |
| public char | |
| public CoderResult | implFlush(CharBuffer out)
Overrides java. Implements sun. Flushes this decoder. |
| public void | implReset()
Overrides java. Implements sun. Resets this decoder, clearing any charset-specific internal state. |
| public boolean |
| b2c | back to summary |
|---|---|
| pack-priv final char[][] b2c | |
| b2cSB | back to summary |
|---|---|
| pack-priv final char[] b2cSB | |
| b2Max | back to summary |
|---|---|
| pack-priv final int b2Max | |
| b2Min | back to summary |
|---|---|
| pack-priv final int b2Min | |
| isASCIICompatible | back to summary |
|---|---|
| pack-priv final boolean isASCIICompatible | |
| Decoder | back to summary |
|---|---|
| public Decoder(Charset cs, float avgcpb, float maxcpb, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible) | |
| Decoder | back to summary |
|---|---|
| public Decoder(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible) | |
| Decoder | back to summary |
|---|---|
| public Decoder(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max) | |
| crMalformedOrUnderFlow | back to summary |
|---|---|
| protected CoderResult crMalformedOrUnderFlow(int b) | |
| crMalformedOrUnmappable | back to summary |
|---|---|
| protected CoderResult crMalformedOrUnmappable(int b1, int b2) | |
| decode | back to summary |
|---|---|
| public int decode(byte[] src, int sp, int len, char[] dst) Implements sun.
| |
| decodeArrayLoop | back to summary |
|---|---|
| protected CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) | |
| decodeBufferLoop | back to summary |
|---|---|
| protected CoderResult decodeBufferLoop(ByteBuffer src, CharBuffer dst) | |
| decodeDouble | back to summary |
|---|---|
| public char decodeDouble(int b1, int b2) | |
| decodeLoop | back to summary |
|---|---|
| public CoderResult decodeLoop(ByteBuffer src, CharBuffer dst) Implements abstract java. Implements sun. 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 | |
| decodeSingle | back to summary |
|---|---|
| public char decodeSingle(int b) | |
| implFlush | back to summary |
|---|---|
| public CoderResult implFlush(CharBuffer out) Overrides java. Implements sun. Doc from java. Flushes this decoder. The default implementation of this method does nothing, and always
returns | |
| implReset | back to summary |
|---|---|
| public void implReset() Overrides java. Implements sun. 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. | |
| isASCIICompatible | back to summary |
|---|---|
| public boolean isASCIICompatible() Overrides default sun.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final char[] |
| Access | Constructor and Description |
|---|---|
| public | Decoder_DBCSONLY(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected CoderResult | crMalformedOrUnmappable(int b1, int b2)
Overrides sun.
|
| b2cSB_UNMAPPABLE | back to summary |
|---|---|
| pack-priv static final char[] b2cSB_UNMAPPABLE | |
| Decoder_DBCSONLY | back to summary |
|---|---|
| public Decoder_DBCSONLY(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible) | |
| Decoder_DBCSONLY | back to summary |
|---|---|
| public Decoder_DBCSONLY(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max) | |
| crMalformedOrUnmappable | back to summary |
|---|---|
| protected CoderResult crMalformedOrUnmappable(int b1, int b2) Overrides sun.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | Decoder_EBCDIC(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | decode(byte[] src, int sp, int len, char[] dst)
Overrides sun. Implements sun.
|
| protected CoderResult | decodeArrayLoop(ByteBuffer src, CharBuffer dst)
Overrides sun.
|
| protected CoderResult | decodeBufferLoop(ByteBuffer src, CharBuffer dst)
Overrides sun.
|
| public void | implReset()
Overrides sun. Implements sun. Resets this decoder, clearing any charset-specific internal state. |
| private static boolean |
| currentState | back to summary |
|---|---|
| private int currentState | |
| DBCS | back to summary |
|---|---|
| private static final int DBCS | |
| SBCS | back to summary |
|---|---|
| private static final int SBCS | |
| SI | back to summary |
|---|---|
| private static final int SI | |
| SO | back to summary |
|---|---|
| private static final int SO | |
| Decoder_EBCDIC | back to summary |
|---|---|
| public Decoder_EBCDIC(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible) | |
| Decoder_EBCDIC | back to summary |
|---|---|
| public Decoder_EBCDIC(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max) | |
| decode | back to summary |
|---|---|
| public int decode(byte[] src, int sp, int len, char[] dst) Overrides sun. Implements sun.
| |
| decodeArrayLoop | back to summary |
|---|---|
| protected CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) | |
| decodeBufferLoop | back to summary |
|---|---|
| protected CoderResult decodeBufferLoop(ByteBuffer src, CharBuffer dst) | |
| implReset | back to summary |
|---|---|
| public void implReset() Overrides sun. Implements sun. 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. | |
| isDoubleByte | back to summary |
|---|---|
| private static boolean isDoubleByte(int b1, int b2) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | Decoder_EUC_SIM(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)
|
| Modifier and Type | Method and Description |
|---|---|
| protected CoderResult | |
| protected CoderResult | crMalformedOrUnmappable(int b1, int b2)
Overrides sun.
|
| public int | decode(byte[] src, int sp, int len, char[] dst)
Overrides sun. Implements sun.
|
| SS2 | back to summary |
|---|---|
| private static final int SS2 | |
| SS3 | back to summary |
|---|---|
| private static final int SS3 | |
| Decoder_EUC_SIM | back to summary |
|---|---|
| public Decoder_EUC_SIM(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible) | |
| crMalformedOrUnderFlow | back to summary |
|---|---|
| protected CoderResult crMalformedOrUnderFlow(int b) Overrides sun. | |
| crMalformedOrUnmappable | back to summary |
|---|---|
| protected CoderResult crMalformedOrUnmappable(int b1, int b2) Overrides sun. | |
| decode | back to summary |
|---|---|
| public int decode(byte[] src, int sp, int len, char[] dst) Overrides sun. Implements sun.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final char[] | |
| pack-priv final boolean | |
| protected static final int | |
| protected byte[] | |
| protected Surrogate. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| 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 | |
| protected CoderResult | |
| public int | |
| public int | encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp)
Implements sun.
|
| public int | encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp)
Implements sun.
|
| protected CoderResult | encodeLoop(CharBuffer src, ByteBuffer dst)
Implements abstract java. Encodes one or more characters into one or more bytes. |
| protected void | implReplaceWith(byte[] newReplacement)
Overrides java. Reports a change to this encoder's replacement value. |
| public static void | |
| public boolean | |
| protected Surrogate. |
| c2b | back to summary |
|---|---|
| private final char[] c2b | |
| c2bIndex | back to summary |
|---|---|
| private final char[] c2bIndex | |
| isASCIICompatible | back to summary |
|---|---|
| pack-priv final boolean isASCIICompatible | |
| MAX_SINGLEBYTE | back to summary |
|---|---|
| protected static final int MAX_SINGLEBYTE | |
| repl | back to summary |
|---|---|
protected byte[] repl
| |
| sgp | back to summary |
|---|---|
| protected Surrogate. | |
| Encoder | back to summary |
|---|---|
| public Encoder(Charset cs, char[] c2b, char[] c2bIndex) | |
| Encoder | back to summary |
|---|---|
| public Encoder(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible) | |
| Encoder | back to summary |
|---|---|
| public Encoder(Charset cs, float avg, float max, byte[] repl, char[] c2b, char[] c2bIndex, boolean isASCIICompatible) | |
| 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. | |
| encodeArrayLoop | back to summary |
|---|---|
| protected CoderResult encodeArrayLoop(CharBuffer src, ByteBuffer dst) | |
| encodeBufferLoop | back to summary |
|---|---|
| protected CoderResult encodeBufferLoop(CharBuffer src, ByteBuffer dst) | |
| encodeChar | back to summary |
|---|---|
| public int encodeChar(char ch) | |
| encodeFromLatin1 | back to summary |
|---|---|
| public int encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp) Implements sun.
| |
| encodeFromUTF16 | back to summary |
|---|---|
| public int encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp) Implements sun.
| |
| 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 | |
| implReplaceWith | back to summary |
|---|---|
| protected void implReplaceWith(byte[] newReplacement) Overrides java. Doc from java. Reports a change to this encoder's replacement value. The default implementation of this method does nothing. This method should be overridden by encoders that require notification of changes to the replacement. | |
| initC2B | back to summary |
|---|---|
| public static void initC2B(String[] b2c, String b2cSB, String b2cNR, String c2bNR, int b2Min, int b2Max, char[] c2b, char[] c2bIndex) | |
| isASCIICompatible | back to summary |
|---|---|
| public boolean isASCIICompatible() Implements sun.
| |
| sgp | back to summary |
|---|---|
| protected Surrogate. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| Encoder_DBCSONLY | back to summary |
|---|---|
| public Encoder_DBCSONLY(Charset cs, byte[] repl, char[] c2b, char[] c2bIndex, boolean isASCIICompatible) | |
| encodeChar | back to summary |
|---|---|
| public int encodeChar(char ch) Overrides sun. | |
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final byte | |
| pack-priv static final byte |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected CoderResult | encodeArrayLoop(CharBuffer src, ByteBuffer dst)
Overrides sun.
|
| protected CoderResult | encodeBufferLoop(CharBuffer src, ByteBuffer dst)
Overrides sun.
|
| public int | encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp)
Overrides sun. Implements sun.
|
| public int | encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp)
Overrides sun. Implements sun.
|
| protected CoderResult | |
| protected void | implReset()
Overrides java. Resets this encoder, clearing any charset-specific internal state. |
| currentState | back to summary |
|---|---|
| protected int currentState | |
| DBCS | back to summary |
|---|---|
| pack-priv static final int DBCS | |
| SBCS | back to summary |
|---|---|
| pack-priv static final int SBCS | |
| SI | back to summary |
|---|---|
| pack-priv static final byte SI | |
| SO | back to summary |
|---|---|
| pack-priv static final byte SO | |
| Encoder_EBCDIC | back to summary |
|---|---|
| public Encoder_EBCDIC(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible) | |
| encodeArrayLoop | back to summary |
|---|---|
| protected CoderResult encodeArrayLoop(CharBuffer src, ByteBuffer dst) | |
| encodeBufferLoop | back to summary |
|---|---|
| protected CoderResult encodeBufferLoop(CharBuffer src, ByteBuffer dst) | |
| encodeFromLatin1 | back to summary |
|---|---|
| public int encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp) Overrides sun. Implements sun.
| |
| encodeFromUTF16 | back to summary |
|---|---|
| public int encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp) Overrides sun. Implements sun.
| |
| implFlush | back to summary |
|---|---|
| protected CoderResult implFlush(ByteBuffer out) Overrides java. Doc from java. Flushes this encoder. 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 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. | |
| Access | Constructor and Description |
|---|---|
| public |
| Encoder_EUC_SIM | back to summary |
|---|---|
| public Encoder_EUC_SIM(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible) | |