com.discovery.darchrow.lang.CharsetType.java Source code

Java tutorial

Introduction

Here is the source code for com.discovery.darchrow.lang.CharsetType.java

Source

/*
 * Copyright (C) 2008 feilong
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.discovery.darchrow.lang;

/**
 * ?.
 * <p>
 * ???,?.
 * </p>
 * 
 * @author feilong
 * @version 1.0 2012-4-5 ?4:51:08
 * @version 1.0.5 2014-5-4 14:35 ?interface
 * @see org.apache.commons.lang3.CharEncoding
 * @see org.apache.commons.lang3.CharEncoding#isSupported(String)
 * @see java.nio.charset.Charset#availableCharsets()
 * @see java.nio.charset.Charset#isSupported(String)
 * @see java.nio.charset.Charset#defaultCharset()
 * @since 1.0.0
 */
public final class CharsetType {

    /** GBK?? <code>{@value}</code>. */
    public static final String GBK = "GBK";

    /** GB2312? <code>{@value}</code>. */
    public static final String GB2312 = "GB2312";

    /** <code>{@value}</code>. */
    public static final String GB18030 = "GB18030";

    // *********************************************************************************************
    /** <code>{@value}</code>. */
    public static final String UTF8 = "UTF-8";

    /**
     * <code>{@value}</code>
     * <p>
     * ISO Latin Alphabet #1, also known as ISO-LATIN-1.<br>
     * Every implementation of the Java platform is required to support this character encoding.
     * </p>
     * ISO/IEC 8859-1?Latin-1?ISO/IEC 88598?.<br>
     * ASCII0xA0-0xFF192???????.<br>
     * ??????????????????????????????.
     * <br>
     * ???ISO 8859-1?.???????????ISO 8859-1?. <br>
     * ??ISO 8859-1?. ??  ?? ??? 1998ISO/IEC 8859-15?.ISO 8859-15??
     */
    public static final String ISO_8859_1 = "ISO-8859-1";

    /** Don't let anyone instantiate this class. */
    private CharsetType() {
        //AssertionError?. ?????. ???.
        //see Effective Java 2nd
        throw new AssertionError("No " + getClass().getName() + " instances for you!");
    }
}