FileDocCategorySizeDatePackage
AliasLister.javaAPI DocExample738Tue Feb 14 16:18:26 GMT 2006None

AliasLister

public class AliasLister extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Map charsets = Charset.availableCharsets();
    Iterator iterator = charsets.values().iterator();
    while (iterator.hasNext()) {
      Charset cs = (Charset) iterator.next();
      System.out.print(cs.displayName());      
      if (cs.isRegistered()) {
        System.out.print(" (registered): "); 
      }
      else {
         System.out.print(" (unregistered): "); 
      }
      System.out.print(cs.name() );      
      Iterator names = cs.aliases().iterator();
      while (names.hasNext()) {
        System.out.print(", ");
        System.out.print(names.next());
      }
      System.out.println();
    }