summaryrefslogtreecommitdiffstats
path: root/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/node/PropertiesLoader.java
blob: 28792bb10203f3f91d09679baf95557a0602b18b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package org.onap.appc.flow.controller.node;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

class PropertiesLoader {

  private PropertiesLoader() {}

  static Properties load(String path) throws IOException {
    Properties props = new Properties();
    try (InputStream propStream = new FileInputStream(path)) {
      props.load(propStream);
    }
    return props;
  }

}