MCPcopy Create free account
hub / github.com/Philipinho/GetVideoBot / ReadProperty

Class ReadProperty

src/main/java/utils/ReadProperty.java:6–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import java.util.Properties;
5
6public class ReadProperty {
7
8
9 public static String getValue(String key) {
10 Properties props = new Properties();
11
12 try {
13 InputStream inputStream = ClassLoader.getSystemClassLoader().getResourceAsStream("settings.properties");
14 props.load(inputStream);
15 } catch (Exception e) {
16 e.printStackTrace();
17 }
18
19 return props.getProperty(key);
20 }
21
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected