@Override protected java.util.Date _parseDate(JsonParser p, DeserializationContext ctxt) throws IOException { if (_customFormat != null) { if (p.hasToken(JsonToken.VALUE_STRING)) { String str = p.getText().trim(); if (str.length() == 0) { return (Date) getEmptyValue(ctxt); } synchronized (_customFormat) { try { return _customFormat.parse(str); } catch (ParseException e) { return (java.util.Date) ctxt.handleWeirdStringValue(handledType(), str, "expected format \"%s\"", _formatString); } } } } return super._parseDate(p, ctxt); } }
throws JsonMappingException final JsonFormat.Value format = findFormatOverrides(ctxt, property, handledType()); df.setLenient(lenient); return withDateFormat(df, pattern); return withDateFormat(df, _formatString); pattern = "[unknown]"; return withDateFormat(df, pattern);
throws JsonMappingException final JsonFormat.Value format = findFormatOverrides(ctxt, property, handledType()); df.setLenient(lenient); return withDateFormat(df, pattern); return withDateFormat(df, _formatString); pattern = "[unknown]"; return withDateFormat(df, pattern);
return withDateFormat(df, pattern); df.setTimeZone(tz); return withDateFormat(df, _formatString);
return withDateFormat(df, pattern); df.setTimeZone(tz); return withDateFormat(df, _formatString);
return withDateFormat(df, pattern); df.setTimeZone(tz); return withDateFormat(df, pattern);
return withDateFormat(df, pattern); df.setTimeZone(tz); return withDateFormat(df, pattern);
String str = jp.getText().trim(); if (str.length() == 0) { return (Date) getEmptyValue(); final Date parsed = _parseDate(jp, ctxt); t = jp.nextToken(); if (t != JsonToken.END_ARRAY) {
String str = jp.getText().trim(); if (str.length() == 0) { return (Date) getEmptyValue(); final Date parsed = _parseDate(jp, ctxt); t = jp.nextToken(); if (t != JsonToken.END_ARRAY) {
JsonFormat.Value format = findFormatOverrides(ctxt, property, this.handledType()); if (format != null) { TimeZone tz = format.getTimeZone(); return withDateFormat(df, pattern); df.setTimeZone(tz); return withDateFormat(df, _formatString);
String str = p.getText().trim(); if (str.length() == 0) { return (Date) getEmptyValue(ctxt); return _customFormat.parse(str); } catch (ParseException e) { return (java.util.Date) ctxt.handleWeirdStringValue(handledType(), str, "expected format \"%s\"", _formatString); final Date parsed = _parseDate(p, ctxt); t = p.nextToken(); if (t != JsonToken.END_ARRAY) { handleMissingEndArrayForSingle(p, ctxt);
@Override protected java.util.Date _parseDate(JsonParser p, DeserializationContext ctxt) throws IOException { if (_customFormat != null) { if (p.hasToken(JsonToken.VALUE_STRING)) { String str = p.getText().trim(); if (str.length() == 0) { return (Date) getEmptyValue(ctxt); } synchronized (_customFormat) { try { return _customFormat.parse(str); } catch (ParseException e) { return (java.util.Date) ctxt.handleWeirdStringValue(handledType(), str, "expected format \"%s\"", _formatString); } } } } return super._parseDate(p, ctxt); } }
@Override protected java.util.Date _parseDate(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if (_customFormat != null && jp.getCurrentToken() == JsonToken.VALUE_STRING) { String str = jp.getText().trim(); if (str.length() == 0) { return (Date) getEmptyValue(); } synchronized (_customFormat) { try { return _customFormat.parse(str); } catch (ParseException e) { throw new IllegalArgumentException("Failed to parse Date value '"+str +"' (format: \""+_formatString+"\"): "+e.getMessage()); } } } return super._parseDate(jp, ctxt); } }
@Override protected java.util.Date _parseDate(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if (_customFormat != null && jp.getCurrentToken() == JsonToken.VALUE_STRING) { String str = jp.getText().trim(); if (str.length() == 0) { return (Date) getEmptyValue(); } synchronized (_customFormat) { try { return _customFormat.parse(str); } catch (ParseException e) { throw new IllegalArgumentException("Failed to parse Date value '"+str +"' (format: \""+_formatString+"\"): "+e.getMessage()); } } } return super._parseDate(jp, ctxt); } }