Package com.sun.codemodel.util
Class MS1252Encoder
java.lang.Object
java.nio.charset.CharsetEncoder
com.sun.codemodel.util.SingleByteEncoder
com.sun.codemodel.util.MS1252Encoder
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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 Details
-
index2
- See Also:
-
index1
private static final short[] index1
-
-
Constructor Details
-
MS1252Encoder
-
-
Method Details
-
canEncode
public boolean canEncode(char c) - Overrides:
canEncode
in classSingleByteEncoder
-