com.scooterframework.admin
Class PropertyReader

java.lang.Object
  extended by com.scooterframework.admin.PropertyReader

public class PropertyReader
extends java.lang.Object

PropertyReader class loads property information.


Constructor Summary
PropertyReader()
           
 
Method Summary
static java.util.Properties loadOrderedPropertiesFromFile(java.io.File file)
          Load all ordered properties from a file
static java.util.Properties loadOrderedPropertiesFromFile(java.lang.String fileName)
          Load all ordered properties from a file
static java.util.Properties loadPropertiesFromFile(java.io.File file)
          Load all properties from a file
static java.util.Properties loadPropertiesFromFile(java.lang.String fileName)
          Load all properties from a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyReader

public PropertyReader()
Method Detail

loadPropertiesFromFile

public static java.util.Properties loadPropertiesFromFile(java.io.File file)
Load all properties from a file

Parameters:
file - property file
Returns:
properties in the resource

loadPropertiesFromFile

public static java.util.Properties loadPropertiesFromFile(java.lang.String fileName)
Load all properties from a file

Parameters:
fileName - name of the property file, not full name
Returns:
properties in the resource

loadOrderedPropertiesFromFile

public static java.util.Properties loadOrderedPropertiesFromFile(java.io.File file)
Load all ordered properties from a file

Parameters:
file - the property file
Returns:
ordered properties in the resource

loadOrderedPropertiesFromFile

public static java.util.Properties loadOrderedPropertiesFromFile(java.lang.String fileName)
Load all ordered properties from a file

Parameters:
fileName - name of the property file
Returns:
ordered properties in the resource