Package org.jclouds.date.internal
Class DateServiceDateCodecFactory.DateServiceIso8601Codec
- java.lang.Object
-
- org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
-
- All Implemented Interfaces:
DateCodec
- Direct Known Subclasses:
HyphenToNullIso8601Codec
- Enclosing class:
- DateServiceDateCodecFactory
@Singleton public static class DateServiceDateCodecFactory.DateServiceIso8601Codec extends Object implements DateCodec
-
-
Field Summary
Fields Modifier and Type Field Description protected DateService
dateService
-
Constructor Summary
Constructors Constructor Description DateServiceIso8601Codec(DateService dateService)
-
-
-
Field Detail
-
dateService
protected final DateService dateService
-
-
Constructor Detail
-
DateServiceIso8601Codec
@Inject public DateServiceIso8601Codec(DateService dateService)
-
-
Method Detail
-
toDate
public Date toDate(String date) throws IllegalArgumentException
- Specified by:
toDate
in interfaceDateCodec
- Returns:
- parsed date
- Throws:
IllegalArgumentException
- if the input is invalid
-
-