Class SingleByteEncoder
java.lang.Object
java.nio.charset.CharsetEncoder
com.sun.codemodel.util.SingleByteEncoder
- Direct Known Subclasses:
MS1252Encoder
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSingleByteEncoder(Charset cs, short[] index1, String index2, int mask1, int mask2, int shift) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEncode(char c) byteencode(char inputChar) private CoderResultencodeArrayLoop(CharBuffer src, ByteBuffer dst) private CoderResultencodeBufferLoop(CharBuffer src, ByteBuffer dst) protected CoderResultencodeLoop(CharBuffer src, ByteBuffer dst) Methods inherited from class CharsetEncoder
averageBytesPerChar, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
Field Details
-
index1
private final short[] index1 -
index2
-
mask1
private final int mask1 -
mask2
private final int mask2 -
shift
private final int shift -
sgp
private final sun.nio.cs.Surrogate.Parser sgp
-
-
Constructor Details
-
SingleByteEncoder
-
-
Method Details
-
canEncode
public boolean canEncode(char c) - Overrides:
canEncodein classCharsetEncoder
-
encodeArrayLoop
-
encodeBufferLoop
-
encodeLoop
- Specified by:
encodeLoopin classCharsetEncoder
-
encode
public byte encode(char inputChar)
-