- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 29 Sep 2009 16:09:07 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/output In directory hutz:/tmp/cvs-serv6893/src/org/w3c/unicorn/output Modified Files: OutputFactory.java Log Message: uses new property file output.properties Index: OutputFactory.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/output/OutputFactory.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- OutputFactory.java 23 Sep 2009 13:14:34 -0000 1.8 +++ OutputFactory.java 29 Sep 2009 16:09:04 -0000 1.9 @@ -62,17 +62,21 @@ * The format who the output formatter must produce. * @return The new output formatter. */ - public static OutputFormater createOutputFormater(final String sOutputFormat, - final String sLang, final String sMimeType) { + public static OutputFormater createOutputFormater(String sOutputFormat, String sLang) { + + if (sLang == null) + sLang = Property.get("DEFAULT_LANGUAGE"); + + if (sOutputFormat == null) + sOutputFormat = Property.get("DEFAULT_FORMAT"); logger.trace("createOutputformater"); logger.debug("Output format : " + sOutputFormat + "."); logger.debug("Language : " + sLang + "."); - logger.debug("Mime type : " + sMimeType + "."); - + OutputFormater aOutputFormater; - String sFormaterName = Property.getProps("specialFormaters.properties").getProperty(sMimeType); + String sFormaterName = Property.getProps("output.properties").getProperty(sOutputFormat + ".formater"); if (null != sFormaterName) { try {
Received on Tuesday, 29 September 2009 16:09:15 UTC