Java Properties Load from File loadProperties(String propertiesFile)

Here you can find the source of loadProperties(String propertiesFile)

Description

load Properties

License

Apache License

Declaration

public static Properties loadProperties(String propertiesFile) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.*;

import java.util.Properties;

public class Main {
    public static Properties loadProperties(String propertiesFile) throws IOException {
        Properties props = new Properties();
        InputStream in = new FileInputStream(propertiesFile);
        props.load(in);/*w  w w .java  2s .com*/
        in.close();
        return props;
    }
}

Related

  1. loadProperties(String filePath)
  2. loadProperties(String filePath)
  3. loadProperties(String path)
  4. loadProperties(String path, Class caller)
  5. loadProperties(String path, Properties defaults)
  6. loadProperties(String propertiesFile)
  7. loadProperties(String propertyFile)
  8. loadProperties(String propertyPath)
  9. loadProperties(String propsFile)