Java Properties Load from File loadProperties(String propertyFile)

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

Description

load Properties

License

Apache License

Declaration

public static void loadProperties(String propertyFile) throws FileNotFoundException, IOException 

Method Source Code

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

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import java.io.IOException;

import java.util.Properties;

public class Main {
    static Properties properties = new Properties();

    public static void loadProperties(String propertyFile) throws FileNotFoundException, IOException {

        FileInputStream input;/*from   w ww.  ja  va 2  s.c o m*/
        input = new FileInputStream(propertyFile);
        // load a properties file
        properties.load(input);
        //System.out.println("DF");
    }
}

Related

  1. loadProperties(String path)
  2. loadProperties(String path, Class caller)
  3. loadProperties(String path, Properties defaults)
  4. loadProperties(String propertiesFile)
  5. loadProperties(String propertiesFile)
  6. loadProperties(String propertyPath)
  7. loadProperties(String propsFile)
  8. loadProperties(String sFile)
  9. loadPropertiesFile(File file, boolean critical)