private void loadPrefsData(InputStream input) throws IOException
  {
    BufferedReader reader = new BufferedReader(new InputStreamReader(input, "UTF-8"));

    // table = new Hashtable();
    String line = null;
    while ((line = reader.readLine()) != null)
    {
      if ((line.length() == 0) || (line.charAt(0) == '#'))
        continue;

      // this won't properly handle = signs being in the text
      int equals = line.indexOf('=');
      if (equals != -1)
      {
        String key = line.substring(0, equals).trim();
        String value = line.substring(equals + 1).trim();
        // System.err.println(key + "=" + value);
        prefsHash.put(key, value);
      }
    }
    reader.close();
  }