|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.realtime.xmpp.util.TimeWriter
Helper class to generate time strings.
Field Summary | |
protected static java.util.Calendar |
m_calendar
Calendar for generating time strings. |
Constructor Summary | |
TimeWriter()
|
Method Summary | |
static java.lang.String |
getTime(long time)
Create a string representation of the given time. |
static java.lang.String |
getUTC(long time)
Create a string representation of the given time as Jabber ready UTC. |
static void |
writeTime(java.lang.StringBuffer buf,
long time)
Format the current time into a string. |
static void |
writeUTC(java.lang.StringBuffer buf,
long time)
Format the current time into a Jabber UTC string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.util.Calendar m_calendar
Constructor Detail |
public TimeWriter()
Method Detail |
public static java.lang.String getTime(long time)
Create a string representation of the given time.
* @param time The time as GMT milliseconds. * @return The time as a string.
public static void writeTime(java.lang.StringBuffer buf, long time)
Format the current time into a string. Append the result into a buffer.
buf
- The string buffer to place the time into.time
- The time to generate as GMT milliseconds.public static java.lang.String getUTC(long time)
Create a string representation of the given time as Jabber ready UTC.
time
- The time as GMT milliseconds.
public static void writeUTC(java.lang.StringBuffer buf, long time)
Format the current time into a Jabber UTC string. Append the result into a buffer.
buf
- The string buffer to place the time into.time
- The time to generate as GMT milliseconds.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |