APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.nio.cs

public Class DoubleByte

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, .CharsetDecoder, .CharsetEncoder, .CoderResult, java.util.Arrays, jdk.internal.access.JavaLangAccess, .SharedSecrets

Nested and Inner Type Summary

Modifier and TypeClass 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

Field Summary

Modifier and TypeField and Description
public static final char[]
private static final JavaLangAccess

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

B2C_UNMAPPABLEback to summary
public static final char[] B2C_UNMAPPABLE
JLAback to summary
private static final JavaLangAccess JLA

Constructor Detail

DoubleByteback to summary
public DoubleByte()
sun.nio.cs back to summary

public Class DoubleByte.Decoder

extends CharsetDecoder
implements DelegatableDecoder, ArrayDecoder
Class Inheritance
All Implemented Interfaces
sun.nio.cs.ArrayDecoder, sun.nio.cs.DelegatableDecoder
Known Direct Subclasses
sun.nio.cs.DoubleByte.Decoder_EBCDIC, sun.nio.cs.DoubleByte.Decoder_DBCSONLY, sun.nio.cs.DoubleByte.Decoder_EUC_SIM, sun.nio.cs.HKSCS.Decoder

Field Summary

Modifier and TypeField and Description
pack-priv final char[][]
pack-priv final char[]
pack-priv final int
pack-priv final int
pack-priv final boolean

Constructor Summary

AccessConstructor and Description
public
Decoder(Charset cs, float avgcpb, float maxcpb, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)

public
Decoder(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)

public
Decoder(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max)

Method Summary

Modifier and TypeMethod and Description
protected CoderResult
protected CoderResult
crMalformedOrUnmappable(int b1, int b2)

public int
decode(byte[] src, int sp, int len, char[] dst)

Implements sun.nio.cs.ArrayDecoder.decode.

protected CoderResult
protected CoderResult
public char
decodeDouble(int b1, int b2)

public CoderResult
decodeLoop(ByteBuffer src, CharBuffer dst)

Implements abstract java.nio.charset.CharsetDecoder.decodeLoop.

Implements sun.nio.cs.DelegatableDecoder.decodeLoop.

Decodes one or more bytes into one or more characters.

public char
decodeSingle(int b)

public CoderResult
public void
implReset()

Overrides java.nio.charset.CharsetDecoder.implReset.

Implements sun.nio.cs.DelegatableDecoder.implReset.

Resets this decoder, clearing any charset-specific internal state.

public boolean
Inherited from java.nio.charset.CharsetDecoder:
averageCharsPerBytecharsetdecodedecodedetectedCharsetflushimplOnMalformedInputimplOnUnmappableCharacterimplReplaceWithisAutoDetectingisCharsetDetectedmalformedInputActionmaxCharsPerByteonMalformedInputonUnmappableCharacterreplacementreplaceWithresetunmappableCharacterAction

Field Detail

b2cback to summary
pack-priv final char[][] b2c
b2cSBback to summary
pack-priv final char[] b2cSB
b2Maxback to summary
pack-priv final int b2Max
b2Minback to summary
pack-priv final int b2Min
isASCIICompatibleback to summary
pack-priv final boolean isASCIICompatible

Constructor Detail

Decoderback to summary
public Decoder(Charset cs, float avgcpb, float maxcpb, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)
Decoderback to summary
public Decoder(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)
Decoderback to summary
public Decoder(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max)

Method Detail

crMalformedOrUnderFlowback to summary
protected CoderResult crMalformedOrUnderFlow(int b)
crMalformedOrUnmappableback to summary
protected CoderResult crMalformedOrUnmappable(int b1, int b2)
decodeback to summary
public int decode(byte[] src, int sp, int len, char[] dst)

Implements sun.nio.cs.ArrayDecoder.decode.

Annotations
@Override
decodeArrayLoopback to summary
protected CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst)
decodeBufferLoopback to summary
protected CoderResult decodeBufferLoop(ByteBuffer src, CharBuffer dst)
decodeDoubleback to summary
public char decodeDouble(int b1, int b2)
decodeLoopback to summary
public CoderResult decodeLoop(ByteBuffer src, CharBuffer dst)

Implements abstract java.nio.charset.CharsetDecoder.decodeLoop.

Implements sun.nio.cs.DelegatableDecoder.decodeLoop.

Doc from java.nio.charset.CharsetDecoder.decodeLoop.

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 decode method, which handles result interpretation and error recovery.

The buffers are read from, and written to, starting at their current positions. At most in.remaining() bytes will be read, and at most out.remaining() characters will be written. The buffers' positions will be advanced to reflect the bytes read and the characters written, but their marks and limits will not be modified.

This method returns a CoderResult object to describe its reason for termination, in the same manner as the decode method. Most implementations of this method will handle decoding errors by returning an appropriate result object for interpretation by the decode method. An optimized implementation may instead examine the relevant error action and implement that action itself.

An implementation of this method may perform arbitrary lookahead by returning CoderResult#UNDERFLOW until it receives sufficient input.

decodeSingleback to summary
public char decodeSingle(int b)
implFlushback to summary
public CoderResult implFlush(CharBuffer out)

Overrides java.nio.charset.CharsetDecoder.implFlush.

Implements sun.nio.cs.DelegatableDecoder.implFlush.

Doc from java.nio.charset.CharsetDecoder.implFlush.

Flushes this decoder.

The default implementation of this method does nothing, and always returns CoderResult#UNDERFLOW. This method should be overridden by decoders that may need to write final characters to the output buffer once the entire input sequence has been read.

implResetback to summary
public void implReset()

Overrides java.nio.charset.CharsetDecoder.implReset.

Implements sun.nio.cs.DelegatableDecoder.implReset.

Doc from java.nio.charset.CharsetDecoder.implReset.

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.

isASCIICompatibleback to summary
public boolean isASCIICompatible()

Overrides default sun.nio.cs.ArrayDecoder.isASCIICompatible.

Annotations
@Override
sun.nio.cs back to summary

public Class DoubleByte.Decoder_DBCSONLY

extends Decoder
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final char[]
Inherited from sun.nio.cs.DoubleByte.Decoder:
b2cb2cSBb2Maxb2MinisASCIICompatible

Constructor Summary

AccessConstructor and Description
public
Decoder_DBCSONLY(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)

public
Decoder_DBCSONLY(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max)

Method Summary

Modifier and TypeMethod and Description
protected CoderResult
Inherited from sun.nio.cs.DoubleByte.Decoder:
crMalformedOrUnderFlowdecodedecodeArrayLoopdecodeBufferLoopdecodeDoubledecodeLoopdecodeSingleimplFlushimplResetisASCIICompatible

Field Detail

b2cSB_UNMAPPABLEback to summary
pack-priv static final char[] b2cSB_UNMAPPABLE

Constructor Detail

Decoder_DBCSONLYback to summary
public Decoder_DBCSONLY(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)
Decoder_DBCSONLYback to summary
public Decoder_DBCSONLY(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max)

Method Detail

crMalformedOrUnmappableback to summary
protected CoderResult crMalformedOrUnmappable(int b1, int b2)

Overrides sun.nio.cs.DoubleByte.Decoder.crMalformedOrUnmappable.

Annotations
@Override
sun.nio.cs back to summary

public Class DoubleByte.Decoder_EBCDIC

extends Decoder
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private static final int
private static final int
private static final int
private static final int
Inherited from sun.nio.cs.DoubleByte.Decoder:
b2cb2cSBb2Maxb2MinisASCIICompatible

Constructor Summary

AccessConstructor and Description
public
Decoder_EBCDIC(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)

public
Decoder_EBCDIC(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max)

Method Summary

Modifier and TypeMethod and Description
public int
decode(byte[] src, int sp, int len, char[] dst)

Overrides sun.nio.cs.DoubleByte.Decoder.decode.

Implements sun.nio.cs.ArrayDecoder.decode.

protected CoderResult
protected CoderResult
public void
implReset()

Overrides sun.nio.cs.DoubleByte.Decoder.implReset.

Implements sun.nio.cs.DelegatableDecoder.implReset.

Resets this decoder, clearing any charset-specific internal state.

private static boolean
isDoubleByte(int b1, int b2)

Inherited from sun.nio.cs.DoubleByte.Decoder:
crMalformedOrUnderFlowcrMalformedOrUnmappabledecodeDoubledecodeLoopdecodeSingleimplFlushisASCIICompatible

Field Detail

currentStateback to summary
private int currentState
DBCSback to summary
private static final int DBCS
SBCSback to summary
private static final int SBCS
SIback to summary
private static final int SI
SOback to summary
private static final int SO

Constructor Detail

Decoder_EBCDICback to summary
public Decoder_EBCDIC(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)
Decoder_EBCDICback to summary
public Decoder_EBCDIC(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max)

Method Detail

decodeback to summary
public int decode(byte[] src, int sp, int len, char[] dst)

Overrides sun.nio.cs.DoubleByte.Decoder.decode.

Implements sun.nio.cs.ArrayDecoder.decode.

Annotations
@Override
decodeArrayLoopback to summary
protected CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst)

Overrides sun.nio.cs.DoubleByte.Decoder.decodeArrayLoop.

decodeBufferLoopback to summary
protected CoderResult decodeBufferLoop(ByteBuffer src, CharBuffer dst)

Overrides sun.nio.cs.DoubleByte.Decoder.decodeBufferLoop.

implResetback to summary
public void implReset()

Overrides sun.nio.cs.DoubleByte.Decoder.implReset.

Implements sun.nio.cs.DelegatableDecoder.implReset.

Doc from java.nio.charset.CharsetDecoder.implReset.

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.

isDoubleByteback to summary
private static boolean isDoubleByte(int b1, int b2)
sun.nio.cs back to summary

public Class DoubleByte.Decoder_EUC_SIM

extends Decoder
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
Inherited from sun.nio.cs.DoubleByte.Decoder:
b2cb2cSBb2Maxb2MinisASCIICompatible

Constructor Summary

AccessConstructor and Description
public
Decoder_EUC_SIM(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)

Method Summary

Modifier and TypeMethod and Description
protected CoderResult
protected CoderResult
public int
decode(byte[] src, int sp, int len, char[] dst)

Overrides sun.nio.cs.DoubleByte.Decoder.decode.

Implements sun.nio.cs.ArrayDecoder.decode.

Inherited from sun.nio.cs.DoubleByte.Decoder:
decodeArrayLoopdecodeBufferLoopdecodeDoubledecodeLoopdecodeSingleimplFlushimplResetisASCIICompatible

Field Detail

SS2back to summary
private static final int SS2
SS3back to summary
private static final int SS3

Constructor Detail

Decoder_EUC_SIMback to summary
public Decoder_EUC_SIM(Charset cs, char[][] b2c, char[] b2cSB, int b2Min, int b2Max, boolean isASCIICompatible)

Method Detail

crMalformedOrUnderFlowback to summary
protected CoderResult crMalformedOrUnderFlow(int b)

Overrides sun.nio.cs.DoubleByte.Decoder.crMalformedOrUnderFlow.

crMalformedOrUnmappableback to summary
protected CoderResult crMalformedOrUnmappable(int b1, int b2)

Overrides sun.nio.cs.DoubleByte.Decoder.crMalformedOrUnmappable.

decodeback to summary
public int decode(byte[] src, int sp, int len, char[] dst)

Overrides sun.nio.cs.DoubleByte.Decoder.decode.

Implements sun.nio.cs.ArrayDecoder.decode.

Annotations
@Override
sun.nio.cs back to summary

public Class DoubleByte.Encoder

extends CharsetEncoder
implements ArrayEncoder
Class Inheritance
All Implemented Interfaces
sun.nio.cs.ArrayEncoder
Known Direct Subclasses
sun.nio.cs.DoubleByte.Encoder_DBCSONLY, sun.nio.cs.DoubleByte.Encoder_EBCDIC, sun.nio.cs.DoubleByte.Encoder_EUC_SIM, sun.nio.cs.HKSCS.Encoder

Field Summary

Modifier and TypeField and Description
private final char[]
private final char[]
pack-priv final boolean
protected static final int
protected byte[]
protected Surrogate.Parser

Constructor Summary

AccessConstructor and Description
public
Encoder(Charset cs, char[] c2b, char[] c2bIndex)

public
Encoder(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

public
Encoder(Charset cs, float avg, float max, byte[] repl, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

Method Summary

Modifier and TypeMethod and Description
public boolean
canEncode(char c)

Overrides java.nio.charset.CharsetEncoder.canEncode.

Tells whether or not this encoder can encode the given character.

public boolean
canEncode(CharSequence cs)

Overrides java.nio.charset.CharsetEncoder.canEncode.

Tells whether or not this encoder can encode the given character sequence.

protected CoderResult
protected CoderResult
public int
encodeChar(char ch)

public int
encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp)

Implements sun.nio.cs.ArrayEncoder.encodeFromLatin1.

public int
encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp)

Implements sun.nio.cs.ArrayEncoder.encodeFromUTF16.

protected CoderResult
encodeLoop(CharBuffer src, ByteBuffer dst)

Implements abstract java.nio.charset.CharsetEncoder.encodeLoop.

Encodes one or more characters into one or more bytes.

protected void
implReplaceWith(byte[] newReplacement)

Overrides java.nio.charset.CharsetEncoder.implReplaceWith.

Reports a change to this encoder's replacement value.

public static void
initC2B(String[] b2c, String b2cSB, String b2cNR, String c2bNR, int b2Min, int b2Max, char[] c2b, char[] c2bIndex)

public boolean
protected Surrogate.Parser
sgp()

Inherited from java.nio.charset.CharsetEncoder:
averageBytesPerCharcharsetencodeencodeflushimplFlushimplOnMalformedInputimplOnUnmappableCharacterimplResetisLegalReplacementmalformedInputActionmaxBytesPerCharonMalformedInputonUnmappableCharacterreplacementreplaceWithresetunmappableCharacterAction

Field Detail

c2bback to summary
private final char[] c2b
c2bIndexback to summary
private final char[] c2bIndex
isASCIICompatibleback to summary
pack-priv final boolean isASCIICompatible
MAX_SINGLEBYTEback to summary
protected static final int MAX_SINGLEBYTE
replback to summary
protected byte[] repl
Annotations
@SuppressWarnings:this-escape
sgpback to summary
protected Surrogate.Parser sgp

Constructor Detail

Encoderback to summary
public Encoder(Charset cs, char[] c2b, char[] c2bIndex)
Encoderback to summary
public Encoder(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)
Encoderback to summary
public Encoder(Charset cs, float avg, float max, byte[] repl, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

Method Detail

canEncodeback to summary
public boolean canEncode(char c)

Overrides java.nio.charset.CharsetEncoder.canEncode.

Doc from java.nio.charset.CharsetEncoder.canEncode.

Tells whether or not this encoder can encode the given character.

This method returns false if the given character is a surrogate character; such characters can be interpreted only when they are members of a pair consisting of a high surrogate followed by a low surrogate. The canEncode(CharSequence) method may be used to test whether or not a character sequence can be encoded.

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.

canEncodeback to summary
public boolean canEncode(CharSequence cs)

Overrides java.nio.charset.CharsetEncoder.canEncode.

Doc from java.nio.charset.CharsetEncoder.canEncode.

Tells whether or not this encoder can encode the given character sequence.

If this method returns false for a particular character sequence then more information about why the sequence cannot be encoded may be obtained by performing a full encoding operation.

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.

encodeArrayLoopback to summary
protected CoderResult encodeArrayLoop(CharBuffer src, ByteBuffer dst)
encodeBufferLoopback to summary
protected CoderResult encodeBufferLoop(CharBuffer src, ByteBuffer dst)
encodeCharback to summary
public int encodeChar(char ch)
encodeFromLatin1back to summary
public int encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp)

Implements sun.nio.cs.ArrayEncoder.encodeFromLatin1.

Annotations
@Override
encodeFromUTF16back to summary
public int encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp)

Implements sun.nio.cs.ArrayEncoder.encodeFromUTF16.

Annotations
@Override
encodeLoopback to summary
protected CoderResult encodeLoop(CharBuffer src, ByteBuffer dst)

Implements abstract java.nio.charset.CharsetEncoder.encodeLoop.

Doc from java.nio.charset.CharsetEncoder.encodeLoop.

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 encode method, which handles result interpretation and error recovery.

The buffers are read from, and written to, starting at their current positions. At most in.remaining() characters will be read, and at most out.remaining() bytes will be written. The buffers' positions will be advanced to reflect the characters read and the bytes written, but their marks and limits will not be modified.

This method returns a CoderResult object to describe its reason for termination, in the same manner as the encode method. Most implementations of this method will handle encoding errors by returning an appropriate result object for interpretation by the encode method. An optimized implementation may instead examine the relevant error action and implement that action itself.

An implementation of this method may perform arbitrary lookahead by returning CoderResult#UNDERFLOW until it receives sufficient input.

implReplaceWithback to summary
protected void implReplaceWith(byte[] newReplacement)

Overrides java.nio.charset.CharsetEncoder.implReplaceWith.

Doc from java.nio.charset.CharsetEncoder.implReplaceWith.

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.

initC2Bback to summary
public static void initC2B(String[] b2c, String b2cSB, String b2cNR, String c2bNR, int b2Min, int b2Max, char[] c2b, char[] c2bIndex)
isASCIICompatibleback to summary
public boolean isASCIICompatible()

Implements sun.nio.cs.ArrayEncoder.isASCIICompatible.

Annotations
@Override
sgpback to summary
protected Surrogate.Parser sgp()
sun.nio.cs back to summary

public Class DoubleByte.Encoder_DBCSONLY

extends Encoder
Class Inheritance

Field Summary

Inherited from sun.nio.cs.DoubleByte.Encoder:
isASCIICompatibleMAX_SINGLEBYTEreplsgp

Constructor Summary

AccessConstructor and Description
public
Encoder_DBCSONLY(Charset cs, byte[] repl, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

Method Summary

Modifier and TypeMethod and Description
public int
Inherited from sun.nio.cs.DoubleByte.Encoder:
canEncodecanEncodeencodeArrayLoopencodeBufferLoopencodeFromLatin1encodeFromUTF16encodeLoopimplReplaceWithinitC2BisASCIICompatiblesgp

Constructor Detail

Encoder_DBCSONLYback to summary
public Encoder_DBCSONLY(Charset cs, byte[] repl, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

Method Detail

encodeCharback to summary
public int encodeChar(char ch)

Overrides sun.nio.cs.DoubleByte.Encoder.encodeChar.

sun.nio.cs back to summary

public Class DoubleByte.Encoder_EBCDIC

extends Encoder
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected int
pack-priv static final int
pack-priv static final int
pack-priv static final byte
pack-priv static final byte
Inherited from sun.nio.cs.DoubleByte.Encoder:
isASCIICompatibleMAX_SINGLEBYTEreplsgp

Constructor Summary

AccessConstructor and Description
public
Encoder_EBCDIC(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

Method Summary

Modifier and TypeMethod and Description
protected CoderResult
protected CoderResult
public int
encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp)

Overrides sun.nio.cs.DoubleByte.Encoder.encodeFromLatin1.

Implements sun.nio.cs.ArrayEncoder.encodeFromLatin1.

public int
encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp)

Overrides sun.nio.cs.DoubleByte.Encoder.encodeFromUTF16.

Implements sun.nio.cs.ArrayEncoder.encodeFromUTF16.

protected CoderResult
implFlush(ByteBuffer out)

Overrides java.nio.charset.CharsetEncoder.implFlush.

Flushes this encoder.

protected void
implReset()

Overrides java.nio.charset.CharsetEncoder.implReset.

Resets this encoder, clearing any charset-specific internal state.

Inherited from sun.nio.cs.DoubleByte.Encoder:
canEncodecanEncodeencodeCharencodeLoopimplReplaceWithinitC2BisASCIICompatiblesgp

Field Detail

currentStateback to summary
protected int currentState
DBCSback to summary
pack-priv static final int DBCS
SBCSback to summary
pack-priv static final int SBCS
SIback to summary
pack-priv static final byte SI
SOback to summary
pack-priv static final byte SO

Constructor Detail

Encoder_EBCDICback to summary
public Encoder_EBCDIC(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

Method Detail

encodeArrayLoopback to summary
protected CoderResult encodeArrayLoop(CharBuffer src, ByteBuffer dst)

Overrides sun.nio.cs.DoubleByte.Encoder.encodeArrayLoop.

encodeBufferLoopback to summary
protected CoderResult encodeBufferLoop(CharBuffer src, ByteBuffer dst)

Overrides sun.nio.cs.DoubleByte.Encoder.encodeBufferLoop.

encodeFromLatin1back to summary
public int encodeFromLatin1(byte[] src, int sp, int len, byte[] dst, int dp)

Overrides sun.nio.cs.DoubleByte.Encoder.encodeFromLatin1.

Implements sun.nio.cs.ArrayEncoder.encodeFromLatin1.

Annotations
@Override
encodeFromUTF16back to summary
public int encodeFromUTF16(byte[] src, int sp, int len, byte[] dst, int dp)

Overrides sun.nio.cs.DoubleByte.Encoder.encodeFromUTF16.

Implements sun.nio.cs.ArrayEncoder.encodeFromUTF16.

Annotations
@Override
implFlushback to summary
protected CoderResult implFlush(ByteBuffer out)

Overrides java.nio.charset.CharsetEncoder.implFlush.

Doc from java.nio.charset.CharsetEncoder.implFlush.

Flushes this encoder.

The default implementation of this method does nothing, and always returns CoderResult#UNDERFLOW. This method should be overridden by encoders that may need to write final bytes to the output buffer once the entire input sequence has been read.

implResetback to summary
protected void implReset()

Overrides java.nio.charset.CharsetEncoder.implReset.

Doc from java.nio.charset.CharsetEncoder.implReset.

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.

sun.nio.cs back to summary

public Class DoubleByte.Encoder_EUC_SIM

extends Encoder
Class Inheritance

Field Summary

Inherited from sun.nio.cs.DoubleByte.Encoder:
isASCIICompatibleMAX_SINGLEBYTEreplsgp

Constructor Summary

AccessConstructor and Description
public
Encoder_EUC_SIM(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)

Method Summary

Inherited from sun.nio.cs.DoubleByte.Encoder:
canEncodecanEncodeencodeArrayLoopencodeBufferLoopencodeCharencodeFromLatin1encodeFromUTF16encodeLoopimplReplaceWithinitC2BisASCIICompatiblesgp

Constructor Detail

Encoder_EUC_SIMback to summary
public Encoder_EUC_SIM(Charset cs, char[] c2b, char[] c2bIndex, boolean isASCIICompatible)