com.evanmclean.evlib.util
Class FileProperties

java.lang.Object
  extended by com.evanmclean.evlib.util.FileProperties

public final class FileProperties
extends Object

Load properties object from a file.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Method Summary
static Properties load(File file)
          Create a new properties object which has been loaded from the specified file.
static void load(Properties props, File file)
          Load the properties from the specified file.
static void load(Properties props, String file_name)
          Load the properties from the specified file.
static Properties load(String file_name)
          Create a new properties object which has been loaded from the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static Properties load(File file)
                       throws IOException
Create a new properties object which has been loaded from the specified file.

Parameters:
file -
Returns:
The newly created properties file.
Throws:
IOException

load

public static void load(Properties props,
                        File file)
                 throws IOException
Load the properties from the specified file.

Parameters:
props -
file -
Throws:
IOException

load

public static void load(Properties props,
                        String file_name)
                 throws IOException
Load the properties from the specified file.

Parameters:
props -
file_name -
Throws:
IOException

load

public static Properties load(String file_name)
                       throws IOException
Create a new properties object which has been loaded from the specified file.

Parameters:
file_name -
Returns:
The newly created properties file.
Throws:
IOException