org.jclouds.openstack.nova.ec2.internal
Class HyphenToNullIso8601Codec
java.lang.Object
org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
org.jclouds.openstack.nova.ec2.internal.HyphenToNullIso8601Codec
- All Implemented Interfaces:
- DateCodec
@Singleton
public class HyphenToNullIso8601Codec
- extends DateServiceDateCodecFactory.DateServiceIso8601Codec
HyphenToNullIso8601Codec
@Inject
public HyphenToNullIso8601Codec(DateService dateService)
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.