CharsetProvider[] providers = providers();
CharsetProvider[] providers = providers2();
  public static SortedMap availableCharsets()  {    TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER);    CharsetProvider[] providers = providers();    for (int j = 0; j < providers.length; j++)      {        for (Iterator i = providers[j].charsets(); i.hasNext(); )  {            Charset cs = (Charset) i.next();            charsets.put(cs.name(), cs);          }      }    return Collections.unmodifiableSortedMap(charsets);  }