Package net.sf.jmatchparser.util.charset

Examples of net.sf.jmatchparser.util.charset.ExtraCharsetsProvider


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()) + "\", ");
View Full Code Here

TOP

Related Classes of net.sf.jmatchparser.util.charset.ExtraCharsetsProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.