org.pfsw.bif.text
Interface ICharsets
public interface ICharsets
Provides constants for the standard character sets that are available in every JRE.
They are useful to avoid the annoying try-catch blocks for UnsupportedEncodingException
when used with String.getBytes(Charset) or String(byte[], Charset). These methods are
available since Java 6.
Can also be used with InputStreamReader(InputStream, Charset) and
OutputStreamWriter(OutputStream, Charset) which are available since Java 1.4.
Since Java 7 there is a class java.nio.charset.StandardCharsets in the
JDK that provides the same kind of constants.
US_ASCII
static final java.nio.charset.Charset US_ASCII
ISO_8859_1
static final java.nio.charset.Charset ISO_8859_1
ISO_8859_2
static final java.nio.charset.Charset ISO_8859_2
ISO_8859_3
static final java.nio.charset.Charset ISO_8859_3
ISO_8859_4
static final java.nio.charset.Charset ISO_8859_4
ISO_8859_5
static final java.nio.charset.Charset ISO_8859_5
ISO_8859_7
static final java.nio.charset.Charset ISO_8859_7
ISO_8859_8
static final java.nio.charset.Charset ISO_8859_8
ISO_8859_9
static final java.nio.charset.Charset ISO_8859_9
ISO_8859_13
static final java.nio.charset.Charset ISO_8859_13
ISO_8859_15
static final java.nio.charset.Charset ISO_8859_15
UTF_8
static final java.nio.charset.Charset UTF_8
UTF_16
static final java.nio.charset.Charset UTF_16
UTF_16LE
static final java.nio.charset.Charset UTF_16LE
UTF_16BE
static final java.nio.charset.Charset UTF_16BE
JVM_DEFAULT
static final java.nio.charset.Charset JVM_DEFAULT