public final class MS1252Encoder extends SingleByteEncoder
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.
Modifier and Type | Field and Description |
---|---|
private static short[] |
index1 |
private static java.lang.String |
index2 |
Constructor and Description |
---|
MS1252Encoder(java.nio.charset.Charset cs) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEncode(char c) |
encode, encodeLoop
averageBytesPerChar, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
private static final java.lang.String index2
private static final short[] index1
public boolean canEncode(char c)
canEncode
in class SingleByteEncoder