From cc0a53d32e15dc10bb14488a645df92aae4b1000 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sat, 2 Nov 2002 02:02:30 +0000 Subject: [PATCH] Removed languages config file handling. 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 | 41 ++-------------------------- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/src/org/apache/fop/apps/Options.java b/src/org/apache/fop/apps/Options.java index 6b4eda224..4a6d844ad 100644 --- a/src/org/apache/fop/apps/Options.java +++ b/src/org/apache/fop/apps/Options.java @@ -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 Class object of requesting class. * @return an InputStream generated through a call to * getResourceAsStream on the context ClassLoader @@ -422,39 +418,6 @@ public class Options { } } - /** - * Loads language configuration file from a system standard place. - * The context class loader and the ConfigurationReader - * class loader are asked in turn to getResourceAsStream - * on fname from a directory called conf. - * If the languages configuration file is found, the results of reading - * the file are stored in Configation as HashMaps under three - * keys: - * languagesMap, countriesMap and - * scriptsMap. - * - * @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 Hashmap * arguments. Special case processing is done for debug mode, -- 2.39.5