| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final JavaLangAccess |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| private static final CoderResult |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| SingleByte | back to summary |
|---|---|
| public SingleByte() | |
| initC2B | back to summary |
|---|---|
| public static void initC2B(char[] b2c, char[] c2bNR, char[] c2b, char[] c2bIndex) | |
| withResult | back to summary |
|---|---|
| private static final CoderResult withResult(CoderResult cr, Buffer src, int sp, Buffer dst, int dp) | |
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final boolean | |
| private final boolean | |
| private char |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final char | |
| public int | |
| private CoderResult | |
| private CoderResult | |
| protected CoderResult | decodeLoop(ByteBuffer src, CharBuffer dst)
Implements abstract java. Decodes one or more bytes into one or more characters. |
| public int | decodeToLatin1(byte[] src, int sp, int len, byte[] dst)
Overrides default sun.
|
| protected void | implReplaceWith(String newReplacement)
Overrides java. Reports a change to this decoder's replacement value. |
| public boolean | |
| public boolean |
| b2c | back to summary |
|---|---|
| private final char[] b2c | |
| isASCIICompatible | back to summary |
|---|---|
| private final boolean isASCIICompatible | |
| isLatin1Decodable | back to summary |
|---|---|
| private final boolean isLatin1Decodable | |
| repl | back to summary |
|---|---|
| private char repl | |
| Decoder | back to summary |
|---|---|
| public Decoder(Charset cs, char[] b2c) | |
| Decoder | back to summary |
|---|---|
| public Decoder(Charset cs, char[] b2c, boolean isASCIICompatible) | |
| Decoder | back to summary |
|---|---|
| public Decoder(Charset cs, char[] b2c, boolean isASCIICompatible, boolean isLatin1Decodable) | |
| decode | back to summary |
|---|---|
| public final char decode(int b) | |
| decode | back to summary |
|---|---|
| public int decode(byte[] src, int sp, int len, char[] dst) Implements sun.
| |
| 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 | |
| decodeToLatin1 | back to summary |
|---|---|
| public int decodeToLatin1(byte[] src, int sp, int len, byte[] dst) Overrides default sun.
| |
| implReplaceWith | back to summary |
|---|---|
| protected void implReplaceWith(String newReplacement) Overrides java. Doc from java. Reports a change to this decoder's replacement value. The default implementation of this method does nothing. This method should be overridden by decoders that require notification of changes to the replacement. | |
| isASCIICompatible | back to summary |
|---|---|
| public boolean isASCIICompatible() Overrides default sun.
| |
| isLatin1Decodable | back to summary |
|---|---|
| public boolean isLatin1Decodable() Overrides default sun.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final char[] | |
| private final boolean | |
| private byte | |
| private Surrogate. |
| Access | Constructor and Description |
|---|---|
| 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. |
| public final int | |
| private CoderResult | |
| private CoderResult | |
| 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 boolean | |
| public boolean | isLegalReplacement(byte[] repl)
Overrides java. Tells whether or not the given byte array is a legal replacement value for this encoder. |
| c2b | back to summary |
|---|---|
| private final char[] c2b | |
| c2bIndex | back to summary |
|---|---|
| private final char[] c2bIndex | |
| isASCIICompatible | back to summary |
|---|---|
| private final boolean isASCIICompatible | |
| repl | back to summary |
|---|---|
| private byte repl | |
| sgp | back to summary |
|---|---|
| private Surrogate. | |
| Encoder | back to summary |
|---|---|
| public Encoder(Charset cs, 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. | |
| encode | back to summary |
|---|---|
| public final int encode(char ch) | |
| encodeArrayLoop | back to summary |
|---|---|
| private CoderResult encodeArrayLoop(CharBuffer src, ByteBuffer dst) | |
| encodeBufferLoop | back to summary |
|---|---|
| private CoderResult encodeBufferLoop(CharBuffer src, ByteBuffer dst) | |
| 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. | |
| isASCIICompatible | back to summary |
|---|---|
| public boolean isASCIICompatible() Implements sun.
| |
| isLegalReplacement | back to summary |
|---|---|
| public boolean isLegalReplacement(byte[] repl) Overrides java. Doc from java. Tells whether or not the given byte array is a legal replacement value for this encoder. A replacement is legal if, and only if, it is a legal sequence of bytes in this encoder's charset; that is, it must be possible to decode the replacement into one or more sixteen-bit Unicode characters. The default implementation of this method is not very efficient; it should generally be overridden to improve performance. | |