org.archive.util
Class PropertyUtils

java.lang.Object
  extended by org.archive.util.PropertyUtils

public class PropertyUtils
extends java.lang.Object

Version:
$Date: 2005-08-15 23:35:10 +0000 (Mon, 15 Aug 2005) $ $Revision: 3760 $
Author:
stack

Constructor Summary
PropertyUtils()
           
 
Method Summary
static boolean getBooleanProperty(java.lang.String key)
           
static int getIntProperty(java.lang.String key, int fallback)
           
static java.lang.String getPropertyOrNull(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtils

public PropertyUtils()
Method Detail

getPropertyOrNull

public static java.lang.String getPropertyOrNull(java.lang.String key)
Parameters:
key - Property key.
Returns:
Named property or null if the property is null or empty.

getBooleanProperty

public static boolean getBooleanProperty(java.lang.String key)
Parameters:
key - Property key.
Returns:
Boolean value or false if null or unreadable.

getIntProperty

public static int getIntProperty(java.lang.String key,
                                 int fallback)
Parameters:
key - Key to use looking up system property.
fallback - If no value found for passed key, return fallback.
Returns:
Value of property or fallback.


Copyright © 2003-2011 Internet Archive. All Rights Reserved.