|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.net.ntp.TimeManager
public abstract class TimeManager
This is an abstract class encapsulating the method for setting the system time on the local system. Setting the local time can be accomplished by some external process of shell-script, or more likely by using the 'Java Native Interface'.
| Constructor Summary | |
|---|---|
TimeManager()
|
|
| Method Summary | |
|---|---|
void |
dispose()
This method could be used to terminate an external helper process. |
void |
finalize()
The default implementation of this method just invokes dispose(). |
static TimeManager |
getInstance()
The factory method for obtaining an instance of 'TimeManager'. |
abstract void |
setTime(java.util.Date d)
Set the local time to a given date. |
void |
setTime(long offset)
Add a given offset to the local time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeManager()
| Method Detail |
|---|
public abstract void setTime(java.util.Date d)
d - DOCUMENT ME!public void setTime(long offset)
offset - DOCUMENT ME!
public void dispose()
throws java.lang.Exception
java.lang.Exception - We allow this method to throw arbitrary exceptions.public void finalize()
finalize in class java.lang.Object
public static TimeManager getInstance()
throws java.lang.Exception
java.lang.Exception - In the default implementation this method throws an
exception if the class 'LocalTimeManager' is not present, or
fails to load.LocalTimeManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||