]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed languages config file handling.
authorPeter Bernard West <pbwest@apache.org>
Sat, 2 Nov 2002 02:02:30 +0000 (02:02 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sat, 2 Nov 2002 02:02:30 +0000 (02:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195404 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/apps/Options.java

index 6b4eda224f16c083141d8d5e27bfb9574c8c698a..4a6d844ada9c9530515f6d7b595d02782bf2b0aa 100644 (file)
@@ -22,7 +22,6 @@ import java.util.Iterator;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.configuration.Configuration;
 import org.apache.fop.configuration.ConfigurationReader;
-import org.apache.fop.configuration.LanguageFileReader;
 
 /**
  * Options handles loading of configuration files and
@@ -221,7 +220,7 @@ public class Options {
      * effect of command line parsing.
      *
      * The standard configuration file has been read and its contents
-     * stored in the Configuration HahMaps.  If a user configuration file
+     * stored in the Configuration HashMaps.  If a user configuration file
      * was specified in the command line arguments, or, failing that, in
      * the standard configuration file, it had been read and its contents
      * have overridden the Configuration maps.
@@ -278,9 +277,6 @@ public class Options {
             MessageHandler.logln("base directory: " + baseDir);
         }
 
-        if ((str = Configuration.getStringValue("languageConfigFileName"))
-            != null) loadLanguagesConfig(str);
-
         if (dumpConfig) {
             Configuration.dumpConfiguration();
             System.exit(0);
@@ -319,7 +315,7 @@ public class Options {
 
     /**
      * Convenience class for common functionality required by the config
-     * files and the language files.
+     * files.
      * @param <tt>Class</tt> object of requesting class.
      * @return an <tt>InputStream</tt> generated through a call to
      * <tt>getResourceAsStream</tt> on the context <tt>ClassLoader</tt>
@@ -422,39 +418,6 @@ public class Options {
         }
     }
 
-    /**
-     * Loads language configuration file from a system standard place.
-     * The context class loader and the <code>ConfigurationReader</code>
-     * class loader are asked in turn to <code>getResourceAsStream</code>
-     * on <i>fname</i> from a directory called <i>conf</i>.
-     * If the languages configuration file is found, the results of reading
-     * the file are stored in Configation as <tt>HashMaps</tt> under three
-     * keys:
-     * <tt><i>languagesMap</i></tt>, <tt><i>countriesMap</i></tt> and
-     * <tt><i>scriptsMap</i></tt>.
-     *
-     * @param fname the name of the configuration file to load.
-     * @exception org.apache.fop.fo.FOPException if the configuration file
-     * cannot be discovered.
-     */
-    public static void loadLanguagesConfig(String fname)
-        throws FOPException {
-        InputStream configfile =
-                getConfResourceFile(fname, LanguageFileReader.class);
-
-        if (debug) {
-            MessageHandler.logln(
-                    "reading language configuration file " + fname);
-        }
-        LanguageFileReader reader =
-            new LanguageFileReader(new InputSource(configfile));
-        reader.start();
-        // Now add the HashMaps to the Configuration
-        Configuration.put("languagesMap", reader.getLanguagesHashMap());
-        Configuration.put("countriesMap", reader.getCountriesHashMap());
-        Configuration.put("scriptsMap", reader.getScriptsHashMap());
-    }
-
     /**
      * parses the commandline arguments into the <code>Hashmap</code>
      * <i>arguments</i>.  Special case processing is done for debug mode,