org.jclouds.eucalyptus.internal
Class DateServiceIso8601SecondsCodec

java.lang.Object
  extended by org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
      extended by org.jclouds.eucalyptus.internal.DateServiceIso8601SecondsCodec
All Implemented Interfaces:
DateCodec

@Singleton
public class DateServiceIso8601SecondsCodec
extends DateServiceDateCodecFactory.DateServiceIso8601Codec


Field Summary
 
Fields inherited from class org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
dateService
 
Constructor Summary
DateServiceIso8601SecondsCodec(DateService dateService)
           
 
Method Summary
 Date toDate(String date)
           
 String toString()
           
 
Methods inherited from class org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateServiceIso8601SecondsCodec

@Inject
public DateServiceIso8601SecondsCodec(DateService dateService)
Method Detail

toDate

public Date toDate(String date)
            throws IllegalArgumentException
Specified by:
toDate in interface DateCodec
Overrides:
toDate in class DateServiceDateCodecFactory.DateServiceIso8601Codec
Returns:
parsed date
Throws:
IllegalArgumentException - if the input is invalid

toString

public String toString()
Overrides:
toString in class DateServiceDateCodecFactory.DateServiceIso8601Codec


Copyright © 2009-2012 jclouds. All Rights Reserved.