Java Properties Load from File loadProperties(File file)

Here you can find the source of loadProperties(File file)

Description

load Properties

License

Open Source License

Declaration

public static Properties loadProperties(File file) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

import java.util.Properties;

public class Main {
    public static Properties loadProperties(File file) {
        Properties prop = new Properties();
        try {/*  w ww . j  a v a  2  s .com*/
            InputStream in = new FileInputStream(file);
            prop.load(in);
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return prop;
    }
}

Related

  1. loadProperties(File file)
  2. loadProperties(File file)
  3. loadProperties(File file)
  4. loadProperties(File file)
  5. loadProperties(File file)
  6. loadProperties(File file)
  7. loadProperties(File file)
  8. loadProperties(File file)
  9. loadProperties(File file)