public Timestamp parse ( String source ) throws ParseException { ParsePosition pos = new ParsePosition ( 0 ) ; Timestamp result = parse ( source , pos ) ; if ( pos . getIndex ( ) == 0 ) throw new ParseException ( "Unparseable date: \"" + source + "\"" , pos . getErrorIndex ( ) ) ; return result ; }
Parses a String and converts it to a Timestamp .