comparison flys-artifacts/src/main/java/de/intevation/flys/utils/Formatter.java @ 2087:bda04ae1154f

#196 Localized the WQ labels in CSV exports. flys-artifacts/trunk@3609 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 06 Jan 2012 09:38:58 +0000
parents acb4d20b130e
children ea173e4c07c7
comparison
equal deleted inserted replaced
2086:a107b42ab553 2087:bda04ae1154f
41 41
42 nf.setMaximumFractionDigits(max); 42 nf.setMaximumFractionDigits(max);
43 nf.setMinimumFractionDigits(min); 43 nf.setMinimumFractionDigits(min);
44 44
45 return nf; 45 return nf;
46 }
47
48
49 /**
50 * Returns a number formatter with no max or min digits set.
51 *
52 * @param c The CallContext.
53 *
54 * @return a number formatter.
55 */
56 public static NumberFormat getRawFormatter(CallContext c) {
57 Locale locale = Resources.getLocale(c.getMeta());
58 return NumberFormat.getInstance(locale);
46 } 59 }
47 60
48 61
49 /** 62 /**
50 * Returns the number formatter for kilometer values in waterlevel exports. 63 * Returns the number formatter for kilometer values in waterlevel exports.

http://dive4elements.wald.intevation.org