Lines Matching defs:cs
51 import sun.nio.cs.ThreadLocalCoders;
287 new GetPropertyAction("sun.nio.cs.bugLevel", ""));
333 private static void cache(String charsetName, Charset cs) {
335 String canonicalName = cs.name();
339 cs = canonicalCharset;
341 cache2.put(canonicalName, cs);
343 for (String alias : cs.aliases()) {
344 cache2.put(alias, cs);
348 cache2.put(charsetName, cs);
351 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs);
432 Charset cs = cp.charsetForName(charsetName);
433 if (cs != null)
434 return cs;
457 // = Class.forName("sun.nio.cs.ext.ExtendedCharsets");
501 Charset cs;
503 if ((cs = cache2.get(charsetName)) != null) {
504 cache1 = new AbstractMap.SimpleImmutableEntry<>(charsetName, cs);
505 return cs;
511 if ((cs = NativeConverter.charsetForName(charsetName)) != null ||
512 (cs = lookupViaProviders(charsetName)) != null)
514 cache(charsetName, cs);
515 return cs;
563 Charset cs = lookup(charsetName);
564 if (cs != null)
565 return cs;
592 Charset cs = i.next();
593 if (!m.containsKey(cs.name()))
594 m.put(cs.name(), cs);
785 * @param cs
790 public abstract boolean contains(Charset cs);
830 * <p> An invocation of this method upon a charset <tt>cs</tt> returns the
834 * cs.newDecoder()
866 * <p> An invocation of this method upon a charset <tt>cs</tt> returns the
870 * cs.newEncoder()
901 * <p> An invocation of this method upon a charset <tt>cs</tt> returns the
905 * cs.encode(CharBuffer.wrap(s)); </pre>