src-main.org.awakefw.commons.codec.CharEncoding Maven / Gradle / Ivy
Show all versions of awake-file Show documentation
/*
* This file is part of Awake FILE.
* Awake FILE: Easy file upload & download over HTTP with Java.
* Copyright (C) 2014, KawanSoft SAS
* (http://www.kawansoft.com). All rights reserved.
*
* Awake FILE is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* Awake FILE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*
* Any modifications to this file must keep this entire header
* intact.
*/
package org.awakefw.commons.codec;
/**
* Character encoding names required of every implementation of the Java platform.
*
* From the Java documentation Standard
* charsets:
*
* Every implementation of the Java platform is required to support the following character encodings. Consult the
* release documentation for your implementation to see if any other encodings are supported. Consult the release
* documentation for your implementation to see if any other encodings are supported.
*
*
*
* US-ASCII
* Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.
* ISO-8859-1
* ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.
* UTF-8
* Eight-bit Unicode Transformation Format.
* UTF-16BE
* Sixteen-bit Unicode Transformation Format, big-endian byte order.
* UTF-16LE
* Sixteen-bit Unicode Transformation Format, little-endian byte order.
* UTF-16
* Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order
* accepted on input, big-endian used on output.)
*
*
* This perhaps would best belong in the [lang] project. Even if a similar interface is defined in [lang], it is not
* forseen that [codec] would be made to depend on [lang].
*
* @see Standard charsets
* @author Apache Software Foundation
* @since 1.4
* @version $Id: CharEncoding.java 797857 2009-07-25 23:43:33Z ggregory $
*/
public class CharEncoding {
/**
* CharEncodingISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.
*
* Every implementation of the Java platform is required to support this character encoding.
*
*
* @see Standard charsets
*/
public static final String ISO_8859_1 = "ISO-8859-1";
/**
*
* Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin block of the Unicode character set.
*
*
* Every implementation of the Java platform is required to support this character encoding.
*
*
* @see Standard charsets
*/
public static final String US_ASCII = "US-ASCII";
/**
*
* Sixteen-bit Unicode Transformation Format, The byte order specified by a mandatory initial byte-order mark
* (either order accepted on input, big-endian used on output)
*
*
* Every implementation of the Java platform is required to support this character encoding.
*
*
* @see Standard charsets
*/
public static final String UTF_16 = "UTF-16";
/**
*
* Sixteen-bit Unicode Transformation Format, big-endian byte order.
*
*
* Every implementation of the Java platform is required to support this character encoding.
*
*
* @see Standard charsets
*/
public static final String UTF_16BE = "UTF-16BE";
/**
*
* Sixteen-bit Unicode Transformation Format, little-endian byte order.
*
*
* Every implementation of the Java platform is required to support this character encoding.
*
*
* @see Standard charsets
*/
public static final String UTF_16LE = "UTF-16LE";
/**
*
* Eight-bit Unicode Transformation Format.
*
*
* Every implementation of the Java platform is required to support this character encoding.
*
*
* @see Standard charsets
*/
public static final String UTF_8 = "UTF-8";
}