com.mmm.cms.util
Class HexavigesimalCalendarFormat

java.lang.Object
  extended by java.text.Format
      extended by com.mmm.cms.util.HexavigesimalCalendarFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class HexavigesimalCalendarFormat
extends java.text.Format

This formatter converts a Calendar to the day of the year consistent Hexavigesimal value. Any day of the year will be represented as the same value no matter what year that day belongs to.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
HexavigesimalCalendarFormat()
           
 
Method Summary
 java.lang.StringBuffer format(java.util.GregorianCalendar calendar, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Converts a Calendar to a Hexavigesimal value, so that any day of the year is represented as the same value no matter which year it belong do.
 java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Converts an Object that is a Calendar to a Hexavigesimal value, so that any day of the year is represented as the same value no matter which year it belong do.
static void main(java.lang.String[] args)
          Main testing module
 java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)
          Not supported
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexavigesimalCalendarFormat

public HexavigesimalCalendarFormat()
Method Detail

main

public static void main(java.lang.String[] args)
Main testing module

Parameters:
args -

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Converts an Object that is a Calendar to a Hexavigesimal value, so that any day of the year is represented as the same value no matter which year it belong do.

Specified by:
format in class java.text.Format
Parameters:
obj -
toAppendTo -
pos -
Returns:

parseObject

public java.lang.Object parseObject(java.lang.String source,
                                    java.text.ParsePosition pos)
Not supported

Specified by:
parseObject in class java.text.Format
Parameters:
source -
pos -
Returns:

format

public java.lang.StringBuffer format(java.util.GregorianCalendar calendar,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Converts a Calendar to a Hexavigesimal value, so that any day of the year is represented as the same value no matter which year it belong do.

Parameters:
calendar -
toAppendTo -
pos -
Returns: