1 package be
.nikiroo
.utils
.resources
;
3 import java
.util
.ResourceBundle
;
6 * This class help you get UTF-8 bundles for this application.
10 public class Bundles
{
12 * The configuration directory where we try to get the <tt>.properties</tt>
13 * in priority, or NULL to get the information from the compiled resources.
15 static private String confDir
= null;
18 * Set the primary configuration directory to look for <tt>.properties</tt>
21 * All {@link ResourceBundle}s returned by this class after that point will
22 * respect this new directory.
27 static public void setDirectory(String confDir
) {
28 Bundles
.confDir
= confDir
;
32 * Get the primary configuration directory to look for <tt>.properties</tt>
35 * @return the directory
37 static public String
getDirectory() {
38 return Bundles
.confDir
;