com.rackspacecloud.client.cloudfiles
Class FilesUtil

java.lang.Object
  extended by com.rackspacecloud.client.cloudfiles.FilesUtil

public class FilesUtil
extends java.lang.Object

Cloud Files utilities


Constructor Summary
FilesUtil()
           
 
Method Summary
static int getIntProperty(java.lang.String key)
          Looks up the value of a key from the properties file and converts it to an integer.
static java.lang.String getProperty(java.lang.String key)
          Look up a property from the properties file.
static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Look up a property from the properties file.
static void loadProperties(java.io.InputStream io)
          Loads properties from input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesUtil

public FilesUtil()
Method Detail

loadProperties

public static void loadProperties(java.io.InputStream io)
                           throws java.io.IOException
Loads properties from input stream.

Parameters:
io -
Throws:
java.io.IOException

getProperty

public static java.lang.String getProperty(java.lang.String key)
Look up a property from the properties file.

Parameters:
key - The name of the property to be found
Returns:
The value of the property

getProperty

public static java.lang.String getProperty(java.lang.String key,
                                           java.lang.String defaultValue)
Look up a property from the properties file.

Parameters:
key - The name of the property to be found
Returns:
The value of the property

getIntProperty

public static int getIntProperty(java.lang.String key)
Looks up the value of a key from the properties file and converts it to an integer.

Parameters:
key -
Returns:
The value of that key