Package com.dropbox.core.json
Class JsonDateReader
- java.lang.Object
- 
- com.dropbox.core.json.JsonDateReader
 
- 
 public class JsonDateReader extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description static JsonReader<java.util.Date>DropboxA parser for dates returned by the Dropbox API.static JsonReader<java.util.Date>DropboxV2A parser for dates returned by the Dropbox V2 API.static java.util.TimeZoneUTC
 - 
Constructor SummaryConstructors Constructor Description JsonDateReader()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetMonthIndex(char a, char b, char c)static booleanisValidDayOfWeek(char a, char b, char c)static java.util.DateparseDropbox8601Date(char[] buffer, int offset, int length)static java.util.DateparseDropboxDate(char[] buffer, int offset, int length)
 
- 
- 
- 
Field Detail- 
Dropboxpublic static final JsonReader<java.util.Date> Dropbox A parser for dates returned by the Dropbox API.
 - 
UTCpublic static final java.util.TimeZone UTC 
 - 
DropboxV2public static final JsonReader<java.util.Date> 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").
 
- 
 - 
Method Detail- 
parseDropboxDatepublic static java.util.Date parseDropboxDate(char[] buffer, int offset, int length) throws java.text.ParseException- Throws:
- java.text.ParseException
 
 - 
isValidDayOfWeekpublic static boolean isValidDayOfWeek(char a, char b, char c)
 - 
getMonthIndexpublic static int getMonthIndex(char a, char b, char c)
 - 
parseDropbox8601Datepublic static java.util.Date parseDropbox8601Date(char[] buffer, int offset, int length) throws java.text.ParseException- Throws:
- java.text.ParseException
 
 
- 
 
-