public class CharsetNameListGenerator {
public static void main(String[] args) {
System.out.println("\t// generated by CharsetNameListGenerator.java");
System.out.println("\tstatic final String[] CHARSET_NAMES = new String[] {");
Iterator<Charset> it = new ExtraCharsetsProvider().charsets();
while (it.hasNext()) {
Charset cs = it.next();
System.out.print("\t\t\"" + CharsetValidator.dumpString(cs.name().toLowerCase()) + "\", ");
for (String alias : cs.aliases()) {
System.out.print("\"" + CharsetValidator.dumpString(alias.toLowerCase()) + "\", ");