/* * Copyright (c) 2015 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com> * All Rights Reserved. */ package me.zhanghai.android.douya.util; import java.nio.charset.Charset; public class StandardCharsetsCompat { private StandardCharsetsCompat() {} /** * The ISO-8859-1 charset. */ public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); /** * The US-ASCII charset. */ public static final Charset US_ASCII = Charset.forName("US-ASCII"); /** * The UTF-8 charset. */ public static final Charset UTF_8 = Charset.forName("UTF-8"); /** * The UTF-16 charset. */ public static final Charset UTF_16 = Charset.forName("UTF-16"); /** * The UTF-16BE (big-endian) charset. */ public static final Charset UTF_16BE = Charset.forName("UTF-16BE"); /** * The UTF-16LE (little-endian) charset. */ public static final Charset UTF_16LE = Charset.forName("UTF-16LE"); }