Class 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static short[] index1  
      private static java.lang.String index2  
    • 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 java.nio.charset.CharsetEncoder

        averageBytesPerChar, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • index1

        private static final short[] index1
    • Constructor Detail

      • MS1252Encoder

        public MS1252Encoder​(java.nio.charset.Charset cs)