*/
public class EncodingAwareProperties extends java.util.Properties{
public void load(File file, String encoding) throws IOException{
String propText = FileUtil.loadFile(file, encoding);
propText = StringUtil.convertLineSeparators(propText);
StringTokenizer stringTokenizer = new StringTokenizer(propText, "\n");
while (stringTokenizer.hasMoreElements()){
String line = stringTokenizer.nextElement();
int i = line.indexOf('=');
String propName = i == -1 ? line : line.substring(0,i);
String propValue = i == -1 ? "" : line.substring(i+1);
setProperty(propName, propValue);
}