Class CalendarCodec


  • public class CalendarCodec
    extends java.lang.Object
    The CalendarSerializer deserializes a dateTime. Much of the work is done in the base class.
    Since:
    1.0 Dec 2, 2005
    Version:
    1.0
    Author:
    Sam Ruby (rubys@us.ibm.com) Modified for JAX-RPC @author Rich Scheuerle (scheu@us.ibm.com), http://cheenath.com adopted from Apache AXIS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DATE_FORMAT  
      static java.lang.String GMT  
    • Constructor Summary

      Constructors 
      Constructor Description
      CalendarCodec()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Calendar deserialize​(java.lang.String source)
      The simple deserializer provides most of the stuff.
      static java.text.SimpleDateFormat getDateFormat()  
      java.lang.String getValueAsString​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CalendarCodec

        public CalendarCodec()
    • Method Detail

      • getDateFormat

        public static java.text.SimpleDateFormat getDateFormat()
      • getValueAsString

        public java.lang.String getValueAsString​(java.lang.Object value)
      • deserialize

        public java.util.Calendar deserialize​(java.lang.String source)
        The simple deserializer provides most of the stuff. We just need to override makeValue().
        Parameters:
        source - source string to deserialize
        Returns:
        calendar created