wtanaka.praya.gale
Class InMemoryTimeFragment
java.lang.Object
|
+--wtanaka.praya.gale.AbstractFragment
|
+--wtanaka.praya.gale.InMemoryTimeFragment
- All Implemented Interfaces:
- FragmentInterface
- public class InMemoryTimeFragment
- extends AbstractFragment
Represents a time fragment
Return to
or the Praya Homepage
- Version:
- $Name: $ $Date: 2001/09/30 22:02:03 $
- Author:
- $Author: wtanaka $
| Fields inherited from interface wtanaka.praya.gale.FragmentInterface |
BODY, CLASS, ENCRYPTED, INSTANCE, KEY_MEMBER, KEY_REDIRECT, NWO_KEY, NWO_KEY_REQUEST, NWO_RECEIPT, NWO_RECEIPT_REQ, OWO_KEY, OWO_KEY_REQUEST, OWO_RECEIPT, OWO_RECEIPT_REQ, PRESENCE, SENDER, SIGNATURE, TIME |
|
Constructor Summary |
|
InMemoryTimeFragment(java.lang.String fragmentName)
constructs a new time fragment with the current date and time |
private |
InMemoryTimeFragment(java.lang.String fragmentName,
java.util.Date date)
constructs a new time fragment with the given name and value |
|
InMemoryTimeFragment(java.lang.String fragmentName,
long seconds,
long fractions)
|
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
m_timestamp
private Timestamp m_timestamp
InMemoryTimeFragment
public InMemoryTimeFragment(java.lang.String fragmentName)
- constructs a new time fragment with the current date and time
InMemoryTimeFragment
private InMemoryTimeFragment(java.lang.String fragmentName,
java.util.Date date)
- constructs a new time fragment with the given name and value
InMemoryTimeFragment
public InMemoryTimeFragment(java.lang.String fragmentName,
long seconds,
long fractions)
getType
public FragmentType getType()
getDate
public java.util.Date getDate()
getStreamLength
public int getStreamLength()
write
public void write(GaleOutputStream out)
throws java.io.IOException
- Writes this text fragment to the output stream, locking it with
synchronized (out).
- Parameters:
out - the output stream on which to write this fragment.
toString
public java.lang.String toString(int indentLevel)
- Overrides:
toString in class AbstractFragment
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object