Package com.drew.lang

Class Charsets


  • public final class Charsets
    extends java.lang.Object
    Holds a set of commonly used character encodings. Newer JDKs include java.nio.charset.StandardCharsets, but we cannot use that in this library.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.nio.charset.Charset ASCII  
      static java.nio.charset.Charset ISO_8859_1  
      static java.nio.charset.Charset UTF_16  
      static java.nio.charset.Charset UTF_16BE  
      static java.nio.charset.Charset UTF_16LE  
      static java.nio.charset.Charset UTF_8  
      static java.nio.charset.Charset WINDOWS_1252  
    • Constructor Summary

      Constructors 
      Constructor Description
      Charsets()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UTF_8

        public static final java.nio.charset.Charset UTF_8
      • UTF_16

        public static final java.nio.charset.Charset UTF_16
      • ISO_8859_1

        public static final java.nio.charset.Charset ISO_8859_1
      • ASCII

        public static final java.nio.charset.Charset ASCII
      • UTF_16BE

        public static final java.nio.charset.Charset UTF_16BE
      • UTF_16LE

        public static final java.nio.charset.Charset UTF_16LE
      • WINDOWS_1252

        public static final java.nio.charset.Charset WINDOWS_1252
    • Constructor Detail

      • Charsets

        public Charsets()