Class JsonDateReader

java.lang.Object
com.dropbox.core.json.JsonDateReader

public class JsonDateReader extends Object
  • Field Details

    • Dropbox

      public static final JsonReader<Date> Dropbox
      A parser for dates returned by the Dropbox API.
    • UTC

      public static final TimeZone UTC
    • DropboxV2

      public static final JsonReader<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").
  • Constructor Details

    • JsonDateReader

      public JsonDateReader()
  • Method Details

    • parseDropboxDate

      public static Date parseDropboxDate(char[] buffer, int offset, int length) throws ParseException
      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