|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.PrimitiveType<byte[]>
jp.bitmeister.asn1.type.builtin.OCTET_STRING
jp.bitmeister.asn1.type.StringType
jp.bitmeister.asn1.type.TimeType
public abstract class TimeType
The base class for types which contains a String that represents date
and time.
This class provides generic interfaces and common methods for classes which represents date and time types.
| Field Summary |
|---|
| Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
stringBuilder |
| Constructor Summary | |
|---|---|
TimeType()
|
|
| Method Summary | ||
|---|---|---|
|
accept(ASN1Visitor<R,E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
|
java.nio.charset.Charset |
charset()
Returns the Charset used for encoding and decodiong the value of
this data. |
|
java.util.Date |
date()
Returns a Date converted from the value of this instance. |
|
abstract java.text.DateFormat |
form()
Returns the DateFormat used for formatting the date and time. |
|
protected abstract java.util.Date |
parseDate(java.lang.String time,
java.lang.String differential)
Parses and converts the strings represents a set of date, time and time defferential to a Date. |
|
void |
set(java.util.Date value)
Converts the Date object to a formatted String that
represents date and time, and set it to this instance. |
|
| Methods inherited from class jp.bitmeister.asn1.type.StringType |
|---|
checkCharacters, pattern, set, stringValue |
| Methods inherited from class jp.bitmeister.asn1.type.builtin.OCTET_STRING |
|---|
cloneValue, concatenate, set, size, valueEquals |
| Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType |
|---|
clear, clone, hashCode, hasValue, set, value |
| Methods inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
equals, instantiate, matches, specification, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeType()
| Method Detail |
|---|
public void set(java.util.Date value)
Date object to a formatted String that
represents date and time, and set it to this instance.
value - The Date to be assigned.public java.util.Date date()
Date converted from the value of this instance.
Date.public abstract java.text.DateFormat form()
DateFormat used for formatting the date and time.
public java.nio.charset.Charset charset()
StringTypeCharset used for encoding and decodiong the value of
this data.
charset in class StringTypeCharset.
public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor)
throws E extends java.lang.Throwable
ASN1TypeASN1Visitor and calls a visit method of the
visitor.
accept in class StringTypevisitor - The visitor.
E - When an error occured in the visit method of the
visitor.
E extends java.lang.Throwable
protected abstract java.util.Date parseDate(java.lang.String time,
java.lang.String differential)
Date.
time - The String represents a set of date.differential - The String represents a time differential.
Date object that converted from the time and the
differential.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||