Home | History | Annotate | Download | only in charset

Lines Matching defs:Charset

17 package java.nio.charset;
24 * A minimal GWT emulation of {@link Charset}.
28 public abstract class Charset implements Comparable<Charset> {
29 private static final Charset UTF_8 = new Charset("UTF-8") {};
31 private static final SortedMap<String, Charset> AVAILABLE_CHARSETS =
32 new TreeMap<String, Charset>();
37 public static SortedMap<String, Charset> availableCharsets() {
41 public static Charset forName(String charsetName) {
43 throw new IllegalArgumentException("Null charset name");
62 Charset charset = AVAILABLE_CHARSETS.get(charsetName.toUpperCase());
63 if (charset != null) {
64 return charset;
71 private Charset(String name) {
79 public final int compareTo(Charset that) {
90 } else if (o instanceof Charset) {
91 Charset that = (Charset) o;