|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.system.Utils
public class Utils
| 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 |
|---|
public Utils()
| Method Detail |
|---|
public static java.lang.String getProperty(java.lang.String property)
property -
public static java.lang.String getSystemProperty(java.lang.String propertyName)
propertyName -
public static void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyName - Property namepropertyValue - Property value to store
public static void setSystemProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyName - propertyValue - public static java.net.URL getResource(java.lang.String name)
name - Resource name
public static java.io.InputStream getResourceAsStream(java.lang.String name)
name -
public static java.lang.String elapsedTime(long startTime,
long endTime)
startTime -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||