jdk/make/data/charsetmapping/SingleByte-X.java.template
changeset 33663 2cd62a4bd471
parent 23010 6dadb192ad81
equal deleted inserted replaced
33662:747a61ad0977 33663:2cd62a4bd471
    46     public boolean contains(Charset cs) {
    46     public boolean contains(Charset cs) {
    47         $CONTAINS$;
    47         $CONTAINS$;
    48     }
    48     }
    49 
    49 
    50     public CharsetDecoder newDecoder() {
    50     public CharsetDecoder newDecoder() {
    51         return new SingleByte.Decoder(this, b2c);
    51         return new SingleByte.Decoder(this, b2c, $ASCIICOMPATIBLE$);
    52     }
    52     }
    53 
    53 
    54     public CharsetEncoder newEncoder() {
    54     public CharsetEncoder newEncoder() {
    55         return new SingleByte.Encoder(this, c2b, c2bIndex);
    55         return new SingleByte.Encoder(this, c2b, c2bIndex, $ASCIICOMPATIBLE$);
    56     }
    56     }
    57 
    57 
    58     private final static String b2cTable = $B2CTABLE$
    58     private final static String b2cTable = $B2CTABLE$
    59 
    59 
    60     private final static char[] b2c = b2cTable.toCharArray();
    60     private final static char[] b2c = b2cTable.toCharArray();