src/java.base/share/classes/java/text/DateFormat.java
changeset 58242 94bb65cb37d3
parent 57956 e0b8b019d2f5
child 58288 48e480e56aad
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
   321      * {@link DateFormat#TIMEZONE_FIELD}, the begin index and end index of
   321      * {@link DateFormat#TIMEZONE_FIELD}, the begin index and end index of
   322      * {@code fieldPosition} will be set to 5 and 8, respectively, for the
   322      * {@code fieldPosition} will be set to 5 and 8, respectively, for the
   323      * first occurrence of the timezone pattern character {@code 'z'}.
   323      * first occurrence of the timezone pattern character {@code 'z'}.
   324      * @return the string buffer passed in as {@code toAppendTo},
   324      * @return the string buffer passed in as {@code toAppendTo},
   325      *         with formatted text appended.
   325      *         with formatted text appended.
   326      * @exception IllegalArgumentException if the {@code Format} cannot format
   326      * @throws    IllegalArgumentException if the {@code Format} cannot format
   327      *            the given {@code obj}.
   327      *            the given {@code obj}.
   328      * @see java.text.Format
   328      * @see java.text.Format
   329      */
   329      */
   330     public final StringBuffer format(Object obj, StringBuffer toAppendTo,
   330     public final StringBuffer format(Object obj, StringBuffer toAppendTo,
   331                                      FieldPosition fieldPosition)
   331                                      FieldPosition fieldPosition)
   383      * See the {@link #parse(String, ParsePosition)} method for more information
   383      * See the {@link #parse(String, ParsePosition)} method for more information
   384      * on date parsing.
   384      * on date parsing.
   385      *
   385      *
   386      * @param source A <code>String</code> whose beginning should be parsed.
   386      * @param source A <code>String</code> whose beginning should be parsed.
   387      * @return A <code>Date</code> parsed from the string.
   387      * @return A <code>Date</code> parsed from the string.
   388      * @exception ParseException if the beginning of the specified string
   388      * @throws    ParseException if the beginning of the specified string
   389      *            cannot be parsed.
   389      *            cannot be parsed.
   390      */
   390      */
   391     public Date parse(String source) throws ParseException
   391     public Date parse(String source) throws ParseException
   392     {
   392     {
   393         ParsePosition pos = new ParsePosition(0);
   393         ParsePosition pos = new ParsePosition(0);