Package com.sun.codemodel.util
Class MS1252Encoder
- java.lang.Object
-
- java.nio.charset.CharsetEncoder
-
- com.sun.codemodel.util.SingleByteEncoder
-
- com.sun.codemodel.util.MS1252Encoder
-
public final class MS1252Encoder extends SingleByteEncoder
MS1252 encoder that corrects a bug in JDK1.4.2_01.See http://www.microsoft.com/globaldev/reference/sbcs/1252.htm for the normative definition. This code depends on Sun internal package, so we have to make sure it won't be executed on other JDKs.
-
-
Constructor Summary
Constructors Constructor Description MS1252Encoder(java.nio.charset.Charset cs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEncode(char c)
-
Methods inherited from class com.sun.codemodel.util.SingleByteEncoder
encode, encodeLoop
-
Methods inherited from class java.nio.charset.CharsetEncoder
averageBytesPerChar, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
-
-
-
-
Field Detail
-
index2
private static final java.lang.String index2
- See Also:
- Constant Field Values
-
index1
private static final short[] index1
-
-
Method Detail
-
canEncode
public boolean canEncode(char c)
- Overrides:
canEncode
in classSingleByteEncoder
-
-