XCMS Toolkit

schemajic.model
Class GeneralizedTimeFormat

java.lang.Object
  extended by schemajic.model.GeneralizedTimeFormat

public class GeneralizedTimeFormat
extends java.lang.Object

Implements ASN.1 type GeneralizedTime formatting, which is composed of a restriced set of the characters defined for use in values of ASN.1 type VisibleString.

Values of this type are character strings that represents a calendar date (as defined in ISO 8601), having a four-digit year, a two-digit month and a two-digit day. The calendar date is followed by a character string that represents the time of day, all formatted consistent with the requirements of ISO 8601.

Version:
1.00 - 2006/02/09
Author:
support@phillipgriffin.com

Constructor Summary
GeneralizedTimeFormat()
          Constructor for GeneralizedTimeFormat.
 
Method Summary
 java.lang.String format(ASN1GeneralizedTime t)
          Formats a value of ASN.1 type GeneralizedTime.
 void format(ASN1GeneralizedTime t, java.io.Writer w)
          Formats a value of ASN.1 type GeneralizedTime.
 ASN1GeneralizedTime parse(java.lang.String s)
          Parses a value of ASN.1 type GeneralizedTime.
 void parse(java.lang.String s, ASN1GeneralizedTime t)
          Parses a value of ASN.1 type GeneralizedTime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralizedTimeFormat

public GeneralizedTimeFormat()
Constructor for GeneralizedTimeFormat.

Method Detail

format

public void format(ASN1GeneralizedTime t,
                   java.io.Writer w)
            throws java.io.IOException
Formats a value of ASN.1 type GeneralizedTime.

Parameters:
t - ASN.1 type GeneralizedTime value
w - a provided string writer
Throws:
java.io.IOException

format

public java.lang.String format(ASN1GeneralizedTime t)
                        throws java.io.IOException
Formats a value of ASN.1 type GeneralizedTime.

Parameters:
t - ASN.1 type GeneralizedTime value
Returns:
a formatted string
Throws:
java.io.IOException

parse

public ASN1GeneralizedTime parse(java.lang.String s)
                          throws java.text.ParseException
Parses a value of ASN.1 type GeneralizedTime.

HHMM>>

Returns:
a value of ASN.1 type GeneralizedTime
Throws:
java.text.ParseException

parse

public void parse(java.lang.String s,
                  ASN1GeneralizedTime t)
           throws java.text.ParseException
Parses a value of ASN.1 type GeneralizedTime.

Parameters:
s - input value to set
t - ASN.1 type GeneralizedTime value
Throws:
java.text.ParseException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.