org.apache.pig.impl.util
Class PropertiesUtil

java.lang.Object
  extended by org.apache.pig.impl.util.PropertiesUtil

public class PropertiesUtil
extends Object


Constructor Summary
PropertiesUtil()
           
 
Method Summary
static Properties loadDefaultProperties()
          Loads default properties.
static void loadDefaultProperties(Properties properties)
          Loads the default properties from pig-default.properties and pig.properties.
static void loadPropertiesFromFile(Properties properties, String fileName)
          Loads the properties from a given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtil

public PropertiesUtil()
Method Detail

loadDefaultProperties

public static void loadDefaultProperties(Properties properties)
Loads the default properties from pig-default.properties and pig.properties.

Parameters:
properties - Properties object that needs to be loaded with the properties' values.

loadPropertiesFromFile

public static void loadPropertiesFromFile(Properties properties,
                                          String fileName)
Loads the properties from a given file.

Parameters:
properties - Properties object that is to be loaded.
fileName - file name of the file that contains the properties.

loadDefaultProperties

public static Properties loadDefaultProperties()
Loads default properties.

Returns:
default properties


Copyright © 2007-2012 The Apache Software Foundation