public abstract Date parse (String source, ParsePosition pos);
public Date parse (String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Date result = parse (source, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("invalid Date syntax in \"" + source + '\"', index); } return result; }
  public abstract Date parse (String source, ParsePosition pos);