Пример #1
0
 public static Properties getPropertiesFromFile(String file) throws IOException {
   InputStream is = ClassLoader.getSystemResourceAsStream(file);
   if (is != null) {
     Properties config = new Properties();
     config.load(is);
     return config;
   } else {
     String remoteclient = "/" + file;
     InputStream is2 = Utility.class.getResourceAsStream(remoteclient);
     Properties config = new Properties();
     config.load(is2);
     return config;
   }
 }