jhomenet.system
Class Utils

java.lang.Object
  extended by jhomenet.system.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String elapsedTime(long startTime, long endTime)
          Converts milliseonds into a readable time in the following format: XX days XX hours XX minutes XX seconds
static java.lang.String getProperty(java.lang.String property)
          Returns a property from the sip-communicator properties set.
static java.net.URL getResource(java.lang.String name)
          Get the URL of a resource given the name.
static java.io.InputStream getResourceAsStream(java.lang.String name)
          Get a resource as an input stream.
static java.lang.String getSystemProperty(java.lang.String propertyName)
          Get the property value given the property name.
static void setProperty(java.lang.String propertyName, java.lang.String propertyValue)
          Set a property value given the name.
static void setSystemProperty(java.lang.String propertyName, java.lang.String propertyValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getProperty

public static java.lang.String getProperty(java.lang.String property)
Returns a property from the sip-communicator properties set.

Parameters:
property -
Returns:

getSystemProperty

public static java.lang.String getSystemProperty(java.lang.String propertyName)
Get the property value given the property name.

Parameters:
propertyName -
Returns:

setProperty

public static void setProperty(java.lang.String propertyName,
                               java.lang.String propertyValue)
Set a property value given the name.

Parameters:
propertyName - Property name
propertyValue - Property value to store

setSystemProperty

public static void setSystemProperty(java.lang.String propertyName,
                                     java.lang.String propertyValue)
Parameters:
propertyName -
propertyValue -

getResource

public static java.net.URL getResource(java.lang.String name)
Get the URL of a resource given the name.

Parameters:
name - Resource name
Returns:
URL to resource

getResourceAsStream

public static java.io.InputStream getResourceAsStream(java.lang.String name)
Get a resource as an input stream.

Parameters:
name -
Returns:

elapsedTime

public static java.lang.String elapsedTime(long startTime,
                                           long endTime)
Converts milliseonds into a readable time in the following format: XX days XX hours XX minutes XX seconds

Parameters:
startTime -
Returns:


Copyright © 2004-2005 David Irwin. All Rights Reserved.