Lines Matching refs:charsetName
333 private static void cache(String charsetName, Charset cs) {
335 cache1 = new Object[] { charsetName, cs };
391 private static Charset lookupViaProviders(final String charsetName) {
415 Charset cs = cp.charsetForName(charsetName);
453 private static Charset lookupExtendedCharset(String charsetName) {
462 return (ecp != null) ? ecp.charsetForName(charsetName) : null;
465 private static Charset lookup(String charsetName) {
466 if (charsetName == null)
470 if ((a = cache1) != null && charsetName.equals(a[0]))
475 return lookup2(charsetName);
478 private static Charset lookup2(String charsetName) {
480 if ((a = cache2) != null && charsetName.equals(a[0])) {
487 if ((cs = standardProvider.charsetForName(charsetName)) != null ||
488 (cs = lookupExtendedCharset(charsetName)) != null ||
489 (cs = lookupViaProviders(charsetName)) != null)
491 cache(charsetName, cs);
496 checkName(charsetName);
503 * @param charsetName
514 * If the given <tt>charsetName</tt> is null
516 public static boolean isSupported(String charsetName) {
517 return (lookup(charsetName) != null);
523 * @param charsetName
533 * If the given <tt>charsetName</tt> is null
539 public static Charset forName(String charsetName) {
540 Charset cs = lookup(charsetName);
543 throw new UnsupportedCharsetException(charsetName);