417 * <td><code>"YYYY-'W'ww-u"</code>
418 * <td><code>2001-W27-3</code>
419 * </tbody>
420 * </table>
421 * </blockquote>
422 *
423 * <h4><a id="synchronization">Synchronization</a></h4>
424 *
425 * <p>
426 * Date formats are not synchronized.
427 * It is recommended to create separate format instances for each thread.
428 * If multiple threads access a format concurrently, it must be synchronized
429 * externally.
430 *
431 * @see <a href="http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html">Java Tutorial</a>
432 * @see java.util.Calendar
433 * @see java.util.TimeZone
434 * @see DateFormat
435 * @see DateFormatSymbols
436 * @author Mark Davis, Chen-Lieh Huang, Alan Liu
437 */
438 public class SimpleDateFormat extends DateFormat {
439
440 // the official serial version ID which says cryptically
441 // which version we're compatible with
442 static final long serialVersionUID = 4774881970558875024L;
443
444 // the internal serial version which says which version was written
445 // - 0 (default) for version up to JDK 1.1.3
446 // - 1 for version from JDK 1.1.4, which includes a new field
447 static final int currentSerialVersion = 1;
448
449 /**
450 * The version of the serialized data on the stream. Possible values:
451 * <ul>
452 * <li><b>0</b> or not present on stream: JDK 1.1.3. This version
453 * has no <code>defaultCenturyStart</code> on stream.
454 * <li><b>1</b> JDK 1.1.4 or later. This version adds
455 * <code>defaultCenturyStart</code>.
456 * </ul>
|
417 * <td><code>"YYYY-'W'ww-u"</code>
418 * <td><code>2001-W27-3</code>
419 * </tbody>
420 * </table>
421 * </blockquote>
422 *
423 * <h4><a id="synchronization">Synchronization</a></h4>
424 *
425 * <p>
426 * Date formats are not synchronized.
427 * It is recommended to create separate format instances for each thread.
428 * If multiple threads access a format concurrently, it must be synchronized
429 * externally.
430 *
431 * @see <a href="http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html">Java Tutorial</a>
432 * @see java.util.Calendar
433 * @see java.util.TimeZone
434 * @see DateFormat
435 * @see DateFormatSymbols
436 * @author Mark Davis, Chen-Lieh Huang, Alan Liu
437 * @since 1.1
438 */
439 public class SimpleDateFormat extends DateFormat {
440
441 // the official serial version ID which says cryptically
442 // which version we're compatible with
443 static final long serialVersionUID = 4774881970558875024L;
444
445 // the internal serial version which says which version was written
446 // - 0 (default) for version up to JDK 1.1.3
447 // - 1 for version from JDK 1.1.4, which includes a new field
448 static final int currentSerialVersion = 1;
449
450 /**
451 * The version of the serialized data on the stream. Possible values:
452 * <ul>
453 * <li><b>0</b> or not present on stream: JDK 1.1.3. This version
454 * has no <code>defaultCenturyStart</code> on stream.
455 * <li><b>1</b> JDK 1.1.4 or later. This version adds
456 * <code>defaultCenturyStart</code>.
457 * </ul>
|