699 |
|
|
700 |
public void generateJavaHeader(PrintWriter o) |
public void generateJavaHeader(PrintWriter o) |
701 |
{ |
{ |
702 |
o.println("/* This file is generated by gnu.localegen from LDML " + analyzer.getParser().getName() + ".xml"); |
o.println("/* LocaleInformation_" + analyzer.getParser().getName() + ".java --"); |
703 |
o.println(" * Do not edit it manually !"); |
o.println(" Copyright (C) 2004 Free Software Foundation, Inc."); |
704 |
o.println(" * Generated on " + DateFormat.getDateInstance().format(new Date())); |
o.println(); |
705 |
o.println(" */"); |
o.println("This file is part of GNU Classpath."); |
706 |
|
o.println(); |
707 |
|
o.println("GNU Classpath is free software; you can redistribute it and/or modify"); |
708 |
|
o.println("it under the terms of the GNU General Public License as published by"); |
709 |
|
o.println("the Free Software Foundation; either version 2, or (at your option)"); |
710 |
|
o.println("any later version."); |
711 |
|
o.println(); |
712 |
|
o.println("GNU Classpath is distributed in the hope that it will be useful, but"); |
713 |
|
o.println("WITHOUT ANY WARRANTY; without even the implied warranty of"); |
714 |
|
o.println("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU"); |
715 |
|
o.println("General Public License for more details."); |
716 |
|
o.println(); |
717 |
|
o.println("You should have received a copy of the GNU General Public License"); |
718 |
|
o.println("along with GNU Classpath; see the file COPYING. If not, write to the"); |
719 |
|
o.println("Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA"); |
720 |
|
o.println("02111-1307 USA."); |
721 |
|
o.println(); |
722 |
|
o.println("Linking this library statically or dynamically with other modules is"); |
723 |
|
o.println("making a combined work based on this library. Thus, the terms and"); |
724 |
|
o.println("conditions of the GNU General Public License cover the whole"); |
725 |
|
o.println("combination."); |
726 |
|
o.println(); |
727 |
|
o.println("As a special exception, the copyright holders of this library give you"); |
728 |
|
o.println("permission to link this library with independent modules to produce an"); |
729 |
|
o.println("executable, regardless of the license terms of these independent"); |
730 |
|
o.println("modules, and to copy and distribute the resulting executable under"); |
731 |
|
o.println("terms of your choice, provided that you also meet, for each linked"); |
732 |
|
o.println("independent module, the terms and conditions of the license of that"); |
733 |
|
o.println("module. An independent module is a module which is not derived from"); |
734 |
|
o.println("or based on this library. If you modify this library, you may extend"); |
735 |
|
o.println("this exception to your version of the library, but you are not"); |
736 |
|
o.println("obligated to do so. If you do not wish to do so, delete this"); |
737 |
|
o.println("exception statement from your version. */"); |
738 |
|
o.println(); |
739 |
|
o.println(); |
740 |
|
o.println("// This file was automatically generated by gnu.localegen from LDML " + analyzer.getParser().getName() + ".xml"); |
741 |
o.println(); |
o.println(); |
742 |
o.println("package " + inPackage + ';'); |
o.println("package " + inPackage + ';'); |
743 |
o.println(); |
o.println(); |
747 |
|
|
748 |
public void generateContents(PrintWriter o) |
public void generateContents(PrintWriter o) |
749 |
{ |
{ |
750 |
o.println(" private static final Object[][] contents = "); |
o.println(" private static final Object[][] contents ="); |
751 |
o.println(" {"); |
o.println(" {"); |
752 |
|
|
753 |
for (int i=0;i<localeContents.size();i++) |
for (int i=0;i<localeContents.size();i++) |