Package com.dropbox.core.json
Class JsonDateReader
java.lang.Object
com.dropbox.core.json.JsonDateReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonReader<Date> A parser for dates returned by the Dropbox API.static final JsonReader<Date> A parser for dates returned by the Dropbox V2 API.static final TimeZone -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetMonthIndex(char a, char b, char c) static booleanisValidDayOfWeek(char a, char b, char c) static DateparseDropbox8601Date(char[] buffer, int offset, int length) static DateparseDropboxDate(char[] buffer, int offset, int length)
-
Field Details
-
Dropbox
A parser for dates returned by the Dropbox API. -
UTC
-
DropboxV2
A parser for dates returned by the Dropbox V2 API. This parses only the new ISO 8601 format (e.g. "2010-01-01T12:00:00Z" or "2010-01-01T12:00:00.000Z").
-
-
Constructor Details
-
JsonDateReader
public JsonDateReader()
-
-
Method Details
-
parseDropboxDate
- Throws:
ParseException
-
isValidDayOfWeek
public static boolean isValidDayOfWeek(char a, char b, char c) -
getMonthIndex
public static int getMonthIndex(char a, char b, char c) -
parseDropbox8601Date
public static Date parseDropbox8601Date(char[] buffer, int offset, int length) throws ParseException - Throws:
ParseException
-