OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Property_loader.java
Go to the documentation of this file.
1 package ai.heavy.jdbc;
2 
3 import java.io.IOException;
4 import java.io.InputStream;
5 import java.net.URL;
6 import java.nio.file.Paths;
7 import java.util.Properties;
8 
9 public class Property_loader extends Properties {
10  public Property_loader(String property_file_name) {
11  try {
12  ClassLoader cl = getClass().getClassLoader();
13  InputStream is = cl.getResourceAsStream(property_file_name);
14  super.load(is);
15  } catch (IOException io) {
16  throw new RuntimeException(io.toString());
17  }
18  }
19 }
Property_loader(String property_file_name)