/*
 * Copyright (c) 2013-2015 Mozilla Foundation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a 
 * copy of this software and associated documentation files (the "Software"), 
 * to deal in the Software without restriction, including without limitation 
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
 * and/or sell copies of the Software, and to permit persons to whom the 
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in 
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
 * DEALINGS IN THE SOFTWARE.
 */

/*
 * THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
 * Instead, please regenerate using generate-encoding-data.py
 */

package nu.validator.encoding;

import java.nio.charset.CharsetDecoder;

class Windows1256 extends Encoding {

    private static final char[] TABLE = {
        '\u20ac',
        '\u067e',
        '\u201a',
        '\u0192',
        '\u201e',
        '\u2026',
        '\u2020',
        '\u2021',
        '\u02c6',
        '\u2030',
        '\u0679',
        '\u2039',
        '\u0152',
        '\u0686',
        '\u0698',
        '\u0688',
        '\u06af',
        '\u2018',
        '\u2019',
        '\u201c',
        '\u201d',
        '\u2022',
        '\u2013',
        '\u2014',
        '\u06a9',
        '\u2122',
        '\u0691',
        '\u203a',
        '\u0153',
        '\u200c',
        '\u200d',
        '\u06ba',
        '\u00a0',
        '\u060c',
        '\u00a2',
        '\u00a3',
        '\u00a4',
        '\u00a5',
        '\u00a6',
        '\u00a7',
        '\u00a8',
        '\u00a9',
        '\u06be',
        '\u00ab',
        '\u00ac',
        '\u00ad',
        '\u00ae',
        '\u00af',
        '\u00b0',
        '\u00b1',
        '\u00b2',
        '\u00b3',
        '\u00b4',
        '\u00b5',
        '\u00b6',
        '\u00b7',
        '\u00b8',
        '\u00b9',
        '\u061b',
        '\u00bb',
        '\u00bc',
        '\u00bd',
        '\u00be',
        '\u061f',
        '\u06c1',
        '\u0621',
        '\u0622',
        '\u0623',
        '\u0624',
        '\u0625',
        '\u0626',
        '\u0627',
        '\u0628',
        '\u0629',
        '\u062a',
        '\u062b',
        '\u062c',
        '\u062d',
        '\u062e',
        '\u062f',
        '\u0630',
        '\u0631',
        '\u0632',
        '\u0633',
        '\u0634',
        '\u0635',
        '\u0636',
        '\u00d7',
        '\u0637',
        '\u0638',
        '\u0639',
        '\u063a',
        '\u0640',
        '\u0641',
        '\u0642',
        '\u0643',
        '\u00e0',
        '\u0644',
        '\u00e2',
        '\u0645',
        '\u0646',
        '\u0647',
        '\u0648',
        '\u00e7',
        '\u00e8',
        '\u00e9',
        '\u00ea',
        '\u00eb',
        '\u0649',
        '\u064a',
        '\u00ee',
        '\u00ef',
        '\u064b',
        '\u064c',
        '\u064d',
        '\u064e',
        '\u00f4',
        '\u064f',
        '\u0650',
        '\u00f7',
        '\u0651',
        '\u00f9',
        '\u0652',
        '\u00fb',
        '\u00fc',
        '\u200e',
        '\u200f',
        '\u06d2'
    };
    
    private static final String[] LABELS = {
        "cp1256",
        "windows-1256",
        "x-cp1256"
    };
    
    private static final String NAME = "windows-1256";
    
    static final Encoding INSTANCE = new Windows1256();
    
    private Windows1256() {
        super(NAME, LABELS);
    }

    @Override public CharsetDecoder newDecoder() {
        return new InfallibleSingleByteDecoder(this, TABLE);
    }

}
