|
||||||||||
| 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
jp.bitmeister.asn1.type.useful.GeneralizedTime
public class GeneralizedTime
Represents ASN.1 "GeneralizedTime" type.
An instance of this class represents a 'GeneralizedTime' type data, and
contains an array of byte value. The value represents a character
sequence of a calendar date with 4-digits year, a time of day with
millisecond precision and a time differential from GMT.
Time differential is represented with a 4 digits number that follows plus(+) or minus(-) sign, or a character 'Z' means GMT. If time differential is omitted, the time zone is local time.
| Field Summary |
|---|
| Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
|---|
stringBuilder |
| Constructor Summary | |
|---|---|
GeneralizedTime()
Instantiates an empty GeneralizedTime. |
|
GeneralizedTime(java.util.Date value)
Instantiate a GeneralizedTime and initialize it with the
Date value. |
|
GeneralizedTime(java.lang.String value)
Instantiates a GeneralizedTime and initialize it with the
String value. |
|
| Method Summary | |
|---|---|
java.text.DateFormat |
form()
Returns the DateFormat used for formatting the date and time. |
protected 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. |
protected java.util.regex.Pattern |
pattern()
Returns the Pattern used for checking characters that to be set
to this data. |
| Methods inherited from class jp.bitmeister.asn1.type.TimeType |
|---|
accept, charset, date, set |
| Methods inherited from class jp.bitmeister.asn1.type.StringType |
|---|
checkCharacters, 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 GeneralizedTime()
GeneralizedTime.
public GeneralizedTime(java.lang.String value)
GeneralizedTime and initialize it with the
String value.
value - The value assigned to the instance.public GeneralizedTime(java.util.Date value)
GeneralizedTime and initialize it with the
Date value.
value - The value assigned to the instance.| Method Detail |
|---|
public java.text.DateFormat form()
TimeTypeDateFormat used for formatting the date and time.
form in class TimeTypeprotected java.util.regex.Pattern pattern()
StringTypePattern used for checking characters that to be set
to this data.
pattern in class StringTypePattern.
protected java.util.Date parseDate(java.lang.String time,
java.lang.String differential)
TimeTypeDate.
parseDate in class TimeTypetime - 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 | |||||||||