|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.anwrt.commons.hessian.model.HessianValue
com.anwrt.commons.hessian.model.HessianSimple
com.anwrt.commons.hessian.model.HessianDate
public class HessianDate
Models a date represented by a 64-bit long or 32-bit int switch date type of
milliseconds or seconds since the Jan 1 1970 00:00H, UTC.
creation : 26 sept. 2008
| Field Summary | |
|---|---|
static int |
MILLISECOND
Date type millisecond. |
static int |
SECOND
Date type millisecond. |
| Constructor Summary | |
|---|---|
HessianDate(java.util.Date value)
|
|
HessianDate(java.util.Date value,
int mode)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getTypeString()
|
java.util.Date |
getValue()
|
void |
render(java.io.OutputStream os,
AwtHessianSerializer ser)
Renders the HessianValue to the given
OutputStream. |
void |
setMode(int mode)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MILLISECOND
public static final int SECOND
| Constructor Detail |
|---|
public HessianDate(java.util.Date value,
int mode)
value - Date to be serializedmode - serialization type.public HessianDate(java.util.Date value)
value - Date to be serialized in millisecond.| Method Detail |
|---|
public void setMode(int mode)
public java.util.Date getValue()
public java.lang.String getTypeString()
getTypeString in class HessianValue
public void render(java.io.OutputStream os,
AwtHessianSerializer ser)
throws AwtHessianSerializerException
HessianValueHessianValue to the given
OutputStream.
render in class HessianValueos - to which to renderser - an AwtHessianSerializer instance
AwtHessianSerializerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||