8179592: Update tables in java.base to be HTML 5-friendly

Reviewed-by: mchung, darcy, martin
This commit is contained in:
Jonathan Gibbons 2017-05-11 10:48:00 -07:00
parent a5deccf860
commit b05e3d5acf
68 changed files with 831 additions and 408 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -59,8 +59,9 @@ package java.io;
* far left-hand column. * far left-hand column.
* *
* <blockquote> * <blockquote>
* <table border="1" cellspacing="0" cellpadding="8" * <table class="plain">
* summary="Bit values and bytes"> * <caption style="display:none">Bit values and bytes</caption>
* <tbody>
* <tr> * <tr>
* <th colspan="9"><span style="font-weight:normal"> * <th colspan="9"><span style="font-weight:normal">
* All characters in the range {@code '\u005Cu0001'} to * All characters in the range {@code '\u005Cu0001'} to
@ -71,7 +72,7 @@ package java.io;
* <th colspan="8" id="bit_a">Bit Values</th> * <th colspan="8" id="bit_a">Bit Values</th>
* </tr> * </tr>
* <tr> * <tr>
* <th id="byte1_a">Byte 1</th> * <th id="byte1_a" style="text-align:left">Byte 1</th>
* <td style="text-align:center">0 * <td style="text-align:center">0
* <td colspan="7" style="text-align:center">bits 6-0 * <td colspan="7" style="text-align:center">bits 6-0
* </tr> * </tr>
@ -86,14 +87,14 @@ package java.io;
* <th colspan="8" id="bit_b">Bit Values</th> * <th colspan="8" id="bit_b">Bit Values</th>
* </tr> * </tr>
* <tr> * <tr>
* <th id="byte1_b">Byte 1</th> * <th id="byte1_b" style="text-align:left">Byte 1</th>
* <td style="text-align:center">1 * <td style="text-align:center">1
* <td style="text-align:center">1 * <td style="text-align:center">1
* <td style="text-align:center">0 * <td style="text-align:center">0
* <td colspan="5" style="text-align:center">bits 10-6 * <td colspan="5" style="text-align:center">bits 10-6
* </tr> * </tr>
* <tr> * <tr>
* <th id="byte2_a">Byte 2</th> * <th id="byte2_a" style="text-align:left">Byte 2</th>
* <td style="text-align:center">1 * <td style="text-align:center">1
* <td style="text-align:center">0 * <td style="text-align:center">0
* <td colspan="6" style="text-align:center">bits 5-0 * <td colspan="6" style="text-align:center">bits 5-0
@ -108,7 +109,7 @@ package java.io;
* <th colspan="8"id="bit_c">Bit Values</th> * <th colspan="8"id="bit_c">Bit Values</th>
* </tr> * </tr>
* <tr> * <tr>
* <th id="byte1_c">Byte 1</th> * <th id="byte1_c" style="text-align:left">Byte 1</th>
* <td style="text-align:center">1 * <td style="text-align:center">1
* <td style="text-align:center">1 * <td style="text-align:center">1
* <td style="text-align:center">1 * <td style="text-align:center">1
@ -116,17 +117,18 @@ package java.io;
* <td colspan="4" style="text-align:center">bits 15-12 * <td colspan="4" style="text-align:center">bits 15-12
* </tr> * </tr>
* <tr> * <tr>
* <th id="byte2_b">Byte 2</th> * <th id="byte2_b" style="text-align:left">Byte 2</th>
* <td style="text-align:center">1 * <td style="text-align:center">1
* <td style="text-align:center">0 * <td style="text-align:center">0
* <td colspan="6" style="text-align:center">bits 11-6 * <td colspan="6" style="text-align:center">bits 11-6
* </tr> * </tr>
* <tr> * <tr>
* <th id="byte3">Byte 3</th> * <th id="byte3" style="text-align:left">Byte 3</th>
* <td style="text-align:center">1 * <td style="text-align:center">1
* <td style="text-align:center">0 * <td style="text-align:center">0
* <td colspan="6" style="text-align:center">bits 5-0 * <td colspan="6" style="text-align:center">bits 5-0
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* <p> * <p>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1994, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1994, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -136,8 +136,12 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* in which the file is to be opened. The permitted values and their * in which the file is to be opened. The permitted values and their
* meanings are: * meanings are:
* *
* <table summary="Access mode permitted values and meanings"> * <table class="striped">
* <caption style="display:none">Access mode permitted values and meanings</caption>
* <thead>
* <tr><th style="text-align:left">Value</th><th style="text-align:left">Meaning</th></tr> * <tr><th style="text-align:left">Value</th><th style="text-align:left">Meaning</th></tr>
* </thead>
* <tbody>
* <tr><td style="vertical-align:top">{@code "r"}</td> * <tr><td style="vertical-align:top">{@code "r"}</td>
* <td> Open for reading only. Invoking any of the {@code write} * <td> Open for reading only. Invoking any of the {@code write}
* methods of the resulting object will cause an * methods of the resulting object will cause an
@ -153,6 +157,7 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* <td> Open for reading and writing, as with {@code "rw"}, and also * <td> Open for reading and writing, as with {@code "rw"}, and also
* require that every update to the file's content be written * require that every update to the file's content be written
* synchronously to the underlying storage device.</td></tr> * synchronously to the underlying storage device.</td></tr>
* </tbody>
* </table> * </table>
* *
* The {@code "rws"} and {@code "rwd"} modes work much like the {@link * The {@code "rws"} and {@code "rwd"} modes work much like the {@link

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -44,12 +44,16 @@ import java.util.StringTokenizer;
* and for each provides a description of what the permission allows * and for each provides a description of what the permission allows
* and a discussion of the risks of granting code the permission. * and a discussion of the risks of granting code the permission.
* *
* <table border=1 cellpadding=5 summary="Permission target name, what the permission allows, and associated risks"> * <table class="striped">
* <caption style="display:none">Permission target name, what the permission allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* <tbody>
* *
* <tr> * <tr>
* <td>enableSubclassImplementation</td> * <td>enableSubclassImplementation</td>
@ -79,7 +83,7 @@ import java.util.StringTokenizer;
* <td>Code could remove a configured filter and remove protections * <td>Code could remove a configured filter and remove protections
* already established.</td> * already established.</td>
* </tr> * </tr>
* * </tbody>
* </table> * </table>
* *
* @see java.security.BasicPermission * @see java.security.BasicPermission

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -9566,7 +9566,9 @@ class Character implements java.io.Serializable, Comparable<Character> {
* Determines if the specified character is ISO-LATIN-1 white space. * Determines if the specified character is ISO-LATIN-1 white space.
* This method returns {@code true} for the following five * This method returns {@code true} for the following five
* characters only: * characters only:
* <table summary="truechars"> * <table class="borderless">
* <caption style="display:none">truechars</caption>
* <tbody>
* <tr><td>{@code '\t'}</td> <td>{@code U+0009}</td> * <tr><td>{@code '\t'}</td> <td>{@code U+0009}</td>
* <td>{@code HORIZONTAL TABULATION}</td></tr> * <td>{@code HORIZONTAL TABULATION}</td></tr>
* <tr><td>{@code '\n'}</td> <td>{@code U+000A}</td> * <tr><td>{@code '\n'}</td> <td>{@code U+000A}</td>
@ -9577,6 +9579,7 @@ class Character implements java.io.Serializable, Comparable<Character> {
* <td>{@code CARRIAGE RETURN}</td></tr> * <td>{@code CARRIAGE RETURN}</td></tr>
* <tr><td>{@code ' '}</td> <td>{@code U+0020}</td> * <tr><td>{@code ' '}</td> <td>{@code U+0020}</td>
* <td>{@code SPACE}</td></tr> * <td>{@code SPACE}</td></tr>
* </tbody>
* </table> * </table>
* *
* @param ch the character to be tested. * @param ch the character to be tested.

View file

@ -724,18 +724,23 @@ public final class Class<T> implements java.io.Serializable,
* one or more '{@code [}' characters representing the depth of the array * one or more '{@code [}' characters representing the depth of the array
* nesting. The encoding of element type names is as follows: * nesting. The encoding of element type names is as follows:
* *
* <blockquote><table summary="Element types and encodings"> * <blockquote><table class="borderless">
* <tr><th> Element Type <th> &nbsp;&nbsp;&nbsp; <th> Encoding * <caption style="display:none">Element types and encodings</caption>
* <tr><td> boolean <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> Z * <thead>
* <tr><td> byte <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> B * <tr><th style="padding-right:3em;"> Element Type <th> Encoding
* <tr><td> char <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> C * </thead>
* <tbody>
* <tr><td> boolean <td style="text-align:center"> Z
* <tr><td> byte <td style="text-align:center"> B
* <tr><td> char <td style="text-align:center"> C
* <tr><td> class or interface * <tr><td> class or interface
* <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> L<i>classname</i>; * <td style="text-align:center"> L<i>classname</i>;
* <tr><td> double <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> D * <tr><td> double <td style="text-align:center"> D
* <tr><td> float <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> F * <tr><td> float <td style="text-align:center"> F
* <tr><td> int <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> I * <tr><td> int <td style="text-align:center"> I
* <tr><td> long <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> J * <tr><td> long <td style="text-align:center"> J
* <tr><td> short <td> &nbsp;&nbsp;&nbsp; <td style="text-align:center"> S * <tr><td> short <td style="text-align:center"> S
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* <p> The class or interface name <i>classname</i> is the binary name of * <p> The class or interface name <i>classname</i> is the binary name of

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1994, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1994, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -255,9 +255,12 @@ public final class Double extends Number implements Comparable<Double> {
* *
* </ul> * </ul>
* *
* <table border> * <table class="plain">
* <caption>Examples</caption> * <caption>Examples</caption>
* <thead>
* <tr><th>Floating-point Value</th><th>Hexadecimal String</th> * <tr><th>Floating-point Value</th><th>Hexadecimal String</th>
* </thead>
* <tbody>
* <tr><td>{@code 1.0}</td> <td>{@code 0x1.0p0}</td> * <tr><td>{@code 1.0}</td> <td>{@code 0x1.0p0}</td>
* <tr><td>{@code -1.0}</td> <td>{@code -0x1.0p0}</td> * <tr><td>{@code -1.0}</td> <td>{@code -0x1.0p0}</td>
* <tr><td>{@code 2.0}</td> <td>{@code 0x1.0p1}</td> * <tr><td>{@code 2.0}</td> <td>{@code 0x1.0p1}</td>
@ -272,6 +275,7 @@ public final class Double extends Number implements Comparable<Double> {
* <td>{@code 0x0.fffffffffffffp-1022}</td> * <td>{@code 0x0.fffffffffffffp-1022}</td>
* <tr><td>{@code Double.MIN_VALUE}</td> * <tr><td>{@code Double.MIN_VALUE}</td>
* <td>{@code 0x0.0000000000001p-1022}</td> * <td>{@code 0x0.0000000000001p-1022}</td>
* </tbody>
* </table> * </table>
* @param d the {@code double} to be converted. * @param d the {@code double} to be converted.
* @return a hex string representation of the argument. * @return a hex string representation of the argument.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1994, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1994, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -256,9 +256,12 @@ public final class Float extends Number implements Comparable<Float> {
* *
* </ul> * </ul>
* *
* <table border> * <table class="plain">
* <caption>Examples</caption> * <caption>Examples</caption>
* <thead>
* <tr><th>Floating-point Value</th><th>Hexadecimal String</th> * <tr><th>Floating-point Value</th><th>Hexadecimal String</th>
* </thead>
* <tbody>
* <tr><td>{@code 1.0}</td> <td>{@code 0x1.0p0}</td> * <tr><td>{@code 1.0}</td> <td>{@code 0x1.0p0}</td>
* <tr><td>{@code -1.0}</td> <td>{@code -0x1.0p0}</td> * <tr><td>{@code -1.0}</td> <td>{@code -0x1.0p0}</td>
* <tr><td>{@code 2.0}</td> <td>{@code 0x1.0p1}</td> * <tr><td>{@code 2.0}</td> <td>{@code 0x1.0p1}</td>
@ -273,6 +276,7 @@ public final class Float extends Number implements Comparable<Float> {
* <td>{@code 0x0.fffffep-126}</td> * <td>{@code 0x0.fffffep-126}</td>
* <tr><td>{@code Float.MIN_VALUE}</td> * <tr><td>{@code Float.MIN_VALUE}</td>
* <td>{@code 0x0.000002p-126}</td> * <td>{@code 0x0.000002p-126}</td>
* </tbody>
* </table> * </table>
* @param f the {@code float} to be converted. * @param f the {@code float} to be converted.
* @return a hex string representation of the argument. * @return a hex string representation of the argument.

View file

@ -43,13 +43,17 @@ import java.lang.module.ModuleFinder;
* target names, and for each provides a description of what the permission * target names, and for each provides a description of what the permission
* allows and a discussion of the risks of granting code the permission. * allows and a discussion of the risks of granting code the permission.
* *
* <table border=1 cellpadding=5 summary="permission target name, * <table class="striped">
* what the target allows,and associated risks"> * <caption style="display:none">permission target name,
* what the target allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* <tbody>
* *
* <tr> * <tr>
* <td>createClassLoader</td> * <td>createClassLoader</td>
@ -383,6 +387,7 @@ import java.lang.module.ModuleFinder;
* {@linkplain ModuleFinder#ofSystem system modules} in the runtime image.</td> * {@linkplain ModuleFinder#ofSystem system modules} in the runtime image.</td>
* </tr> * </tr>
* *
* </tbody>
* </table> * </table>
* *
* @implNote * @implNote

View file

@ -2203,12 +2203,16 @@ public final class String
* <p> The string {@code "boo:and:foo"}, for example, yields the * <p> The string {@code "boo:and:foo"}, for example, yields the
* following results with these parameters: * following results with these parameters:
* *
* <blockquote><table cellpadding=1 cellspacing=0 summary="Split example showing regex, limit, and result"> * <blockquote><table class="plain">
* <caption style="display:none">Split example showing regex, limit, and result</caption>
* <thead>
* <tr> * <tr>
* <th>Regex</th> * <th>Regex</th>
* <th>Limit</th> * <th>Limit</th>
* <th>Result</th> * <th>Result</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr><td style="text-align:center">:</td> * <tr><td style="text-align:center">:</td>
* <td style="text-align:center">2</td> * <td style="text-align:center">2</td>
* <td>{@code { "boo", "and:foo" }}</td></tr> * <td>{@code { "boo", "and:foo" }}</td></tr>
@ -2227,6 +2231,7 @@ public final class String
* <tr><td style="text-align:center">o</td> * <tr><td style="text-align:center">o</td>
* <td style="text-align:center">0</td> * <td style="text-align:center">0</td>
* <td>{@code { "b", "", ":and:f" }}</td></tr> * <td>{@code { "b", "", ":and:f" }}</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* <p> An invocation of this method of the form * <p> An invocation of this method of the form
@ -2326,15 +2331,20 @@ public final class String
* <p> The string {@code "boo:and:foo"}, for example, yields the following * <p> The string {@code "boo:and:foo"}, for example, yields the following
* results with these expressions: * results with these expressions:
* *
* <blockquote><table cellpadding=1 cellspacing=0 summary="Split examples showing regex and result"> * <blockquote><table class="plain">
* <caption style="display:none">Split examples showing regex and result</caption>
* <thead>
* <tr> * <tr>
* <th>Regex</th> * <th>Regex</th>
* <th>Result</th> * <th>Result</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr><td style="text-align:center">:</td> * <tr><td style="text-align:center">:</td>
* <td>{@code { "boo", "and", "foo" }}</td></tr> * <td>{@code { "boo", "and", "foo" }}</td></tr>
* <tr><td style="text-align:center">o</td> * <tr><td style="text-align:center">o</td>
* <td>{@code { "b", "", ":and:f" }}</td></tr> * <td>{@code { "b", "", ":and:f" }}</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* *
@ -2445,13 +2455,17 @@ public final class String
* {@code String} may be a different length than the original {@code String}. * {@code String} may be a different length than the original {@code String}.
* <p> * <p>
* Examples of lowercase mappings are in the following table: * Examples of lowercase mappings are in the following table:
* <table border="1" summary="Lowercase mapping examples showing language code of locale, upper case, lower case, and description"> * <table class="plain">
* <caption style="display:none">Lowercase mapping examples showing language code of locale, upper case, lower case, and description</caption>
* <thead>
* <tr> * <tr>
* <th>Language Code of Locale</th> * <th>Language Code of Locale</th>
* <th>Upper Case</th> * <th>Upper Case</th>
* <th>Lower Case</th> * <th>Lower Case</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td>tr (Turkish)</td> * <td>tr (Turkish)</td>
* <td>&#92;u0130</td> * <td>&#92;u0130</td>
@ -2480,6 +2494,7 @@ public final class String
* <img src="doc-files/sigma1.gif" alt="sigma"></td> * <img src="doc-files/sigma1.gif" alt="sigma"></td>
* <td>lowercased all chars in String</td> * <td>lowercased all chars in String</td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* @param locale use the case transformation rules for this locale * @param locale use the case transformation rules for this locale
@ -2526,13 +2541,17 @@ public final class String
* <p> * <p>
* Examples of locale-sensitive and 1:M case mappings are in the following table. * Examples of locale-sensitive and 1:M case mappings are in the following table.
* *
* <table border="1" summary="Examples of locale-sensitive and 1:M case mappings. Shows Language code of locale, lower case, upper case, and description."> * <table class="plain">
* <caption style="display:none">Examples of locale-sensitive and 1:M case mappings. Shows Language code of locale, lower case, upper case, and description.</caption>
* <thead>
* <tr> * <tr>
* <th>Language Code of Locale</th> * <th>Language Code of Locale</th>
* <th>Lower Case</th> * <th>Lower Case</th>
* <th>Upper Case</th> * <th>Upper Case</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td>tr (Turkish)</td> * <td>tr (Turkish)</td>
* <td>&#92;u0069</td> * <td>&#92;u0069</td>
@ -2557,6 +2576,7 @@ public final class String
* <td>FAHRVERGN&Uuml;GEN</td> * <td>FAHRVERGN&Uuml;GEN</td>
* <td></td> * <td></td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* @param locale use the case transformation rules for this locale * @param locale use the case transformation rules for this locale
* @return the {@code String}, converted to uppercase. * @return the {@code String}, converted to uppercase.

View file

@ -575,9 +575,13 @@ public final class System {
* system properties, a set of system properties is first created and * system properties, a set of system properties is first created and
* initialized. This set of system properties always includes values * initialized. This set of system properties always includes values
* for the following keys: * for the following keys:
* <table summary="Shows property keys and associated values"> * <table class="striped">
* <caption style="display:none">Shows property keys and associated values</caption>
* <thead>
* <tr><th>Key</th> * <tr><th>Key</th>
* <th>Description of Associated Value</th></tr> * <th>Description of Associated Value</th></tr>
* </thead>
* <tbody>
* <tr><td><code>java.version</code></td> * <tr><td><code>java.version</code></td>
* <td>Java Runtime Environment version which may be interpreted * <td>Java Runtime Environment version which may be interpreted
* as a {@link Runtime.Version}</td></tr> * as a {@link Runtime.Version}</td></tr>
@ -636,6 +640,7 @@ public final class System {
* <td>User's home directory</td></tr> * <td>User's home directory</td></tr>
* <tr><td><code>user.dir</code></td> * <tr><td><code>user.dir</code></td>
* <td>User's current working directory</td></tr> * <td>User's current working directory</td></tr>
* </tbody>
* </table> * </table>
* <p> * <p>
* Multiple paths in a system property value are separated by the path * Multiple paths in a system property value are separated by the path
@ -647,9 +652,13 @@ public final class System {
* *
* @implNote In addition to the standard system properties, the system * @implNote In addition to the standard system properties, the system
* properties may include the following keys: * properties may include the following keys:
* <table summary="Shows property keys and associated values"> * <table class="striped">
* <caption style="display:none">Shows property keys and associated values</caption>
* <thead>
* <tr><th>Key</th> * <tr><th>Key</th>
* <th>Description of Associated Value</th></tr> * <th>Description of Associated Value</th></tr>
* </thead>
* <tbody>
* <tr><td>{@code jdk.module.path}</td> * <tr><td>{@code jdk.module.path}</td>
* <td>The application module path</td></tr> * <td>The application module path</td></tr>
* <tr><td>{@code jdk.module.upgrade.path}</td> * <tr><td>{@code jdk.module.upgrade.path}</td>
@ -658,6 +667,7 @@ public final class System {
* <td>The module name of the initial/main module</td></tr> * <td>The module name of the initial/main module</td></tr>
* <tr><td>{@code jdk.module.main.class}</td> * <tr><td>{@code jdk.module.main.class}</td>
* <td>The main class name of the initial module</td></tr> * <td>The main class name of the initial module</td></tr>
* </tbody>
* </table> * </table>
* *
* @return the system properties * @return the system properties

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -149,8 +149,12 @@ import java.util.Arrays;
* capture argument (corresponding to the receiver) must be non-null. * capture argument (corresponding to the receiver) must be non-null.
* *
* <p>A type Q is considered adaptable to S as follows: * <p>A type Q is considered adaptable to S as follows:
* <table summary="adaptable types"> * <table class="borderless">
* <caption style="display:none">adaptable types</caption>
* <thead>
* <tr><th>Q</th><th>S</th><th>Link-time checks</th><th>Invocation-time checks</th></tr> * <tr><th>Q</th><th>S</th><th>Link-time checks</th><th>Invocation-time checks</th></tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td>Primitive</td><td>Primitive</td> * <td>Primitive</td><td>Primitive</td>
* <td>Q can be converted to S via a primitive widening conversion</td> * <td>Q can be converted to S via a primitive widening conversion</td>
@ -176,6 +180,7 @@ import java.util.Arrays;
* <br>for return types: none</td> * <br>for return types: none</td>
* <td>Cast from Q to S</td> * <td>Cast from Q to S</td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* @apiNote These linkage methods are designed to support the evaluation * @apiNote These linkage methods are designed to support the evaluation

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -81,8 +81,12 @@ import static java.lang.invoke.MethodHandleStatics.*;
* The <a href="MethodHandles.Lookup.html#lookups">Lookup Factory Methods</a> * The <a href="MethodHandles.Lookup.html#lookups">Lookup Factory Methods</a>
* correspond to all major use cases for methods, constructors, and fields. * correspond to all major use cases for methods, constructors, and fields.
* These use cases may be distinguished using small integers as follows: * These use cases may be distinguished using small integers as follows:
* <table border=1 cellpadding=5 summary="reference kinds"> * <table class="striped">
* <caption style="display:none">reference kinds</caption>
* <thead>
* <tr><th>reference kind</th><th>descriptive name</th><th>scope</th><th>member</th><th>behavior</th></tr> * <tr><th>reference kind</th><th>descriptive name</th><th>scope</th><th>member</th><th>behavior</th></tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td>{@code 1}</td><td>{@code REF_getField}</td><td>{@code class}</td> * <td>{@code 1}</td><td>{@code REF_getField}</td><td>{@code class}</td>
* <td>{@code FT f;}</td><td>{@code (T) this.f;}</td> * <td>{@code FT f;}</td><td>{@code (T) this.f;}</td>
@ -119,6 +123,7 @@ import static java.lang.invoke.MethodHandleStatics.*;
* <td>{@code 9}</td><td>{@code REF_invokeInterface}</td><td>{@code interface}</td> * <td>{@code 9}</td><td>{@code REF_invokeInterface}</td><td>{@code interface}</td>
* <td>{@code T m(A*);}</td><td>{@code (T) this.m(arg*);}</td> * <td>{@code T m(A*);}</td><td>{@code (T) this.m(arg*);}</td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* @since 1.8 * @since 1.8
*/ */

View file

@ -278,12 +278,16 @@ public class MethodHandles {
* (Bytecode behaviors are described in section 5.4.3.5 of the Java Virtual Machine Specification.) * (Bytecode behaviors are described in section 5.4.3.5 of the Java Virtual Machine Specification.)
* Here is a summary of the correspondence between these factory methods and * Here is a summary of the correspondence between these factory methods and
* the behavior of the resulting method handles: * the behavior of the resulting method handles:
* <table border=1 cellpadding=5 summary="lookup method behaviors"> * <table class="striped">
* <caption style="display:none">lookup method behaviors</caption>
* <thead>
* <tr> * <tr>
* <th><a id="equiv"></a>lookup expression</th> * <th><a id="equiv"></a>lookup expression</th>
* <th>member</th> * <th>member</th>
* <th>bytecode behavior</th> * <th>bytecode behavior</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td>{@link java.lang.invoke.MethodHandles.Lookup#findGetter lookup.findGetter(C.class,"f",FT.class)}</td> * <td>{@link java.lang.invoke.MethodHandles.Lookup#findGetter lookup.findGetter(C.class,"f",FT.class)}</td>
* <td>{@code FT f;}</td><td>{@code (T) this.f;}</td> * <td>{@code FT f;}</td><td>{@code (T) this.f;}</td>
@ -340,6 +344,7 @@ public class MethodHandles {
* <td>{@link java.lang.invoke.MethodHandles.Lookup#findClass lookup.findClass("C")}</td> * <td>{@link java.lang.invoke.MethodHandles.Lookup#findClass lookup.findClass("C")}</td>
* <td>{@code class C { ... }}</td><td>{@code C.class;}</td> * <td>{@code class C { ... }}</td><td>{@code C.class;}</td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* Here, the type {@code C} is the class or interface being searched for a member, * Here, the type {@code C} is the class or interface being searched for a member,

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -105,10 +105,13 @@ import sun.reflect.annotation.AnnotationType;
* <p>The table below summarizes which kind of annotation presence * <p>The table below summarizes which kind of annotation presence
* different methods in this interface examine. * different methods in this interface examine.
* *
* <table border> * <table class="plain">
* <caption>Overview of kind of presence detected by different AnnotatedElement methods</caption> * <caption>Overview of kind of presence detected by different AnnotatedElement methods</caption>
* <thead>
* <tr><th colspan=2></th><th colspan=4>Kind of Presence</th> * <tr><th colspan=2></th><th colspan=4>Kind of Presence</th>
* <tr><th colspan=2>Method</th><th>Directly Present</th><th>Indirectly Present</th><th>Present</th><th>Associated</th> * <tr><th colspan=2>Method</th><th>Directly Present</th><th>Indirectly Present</th><th>Present</th><th>Associated</th>
* </thead>
* <tbody>
* <tr><td style="text-align:right">{@code T}</td><td>{@link #getAnnotation(Class) getAnnotation(Class&lt;T&gt;)} * <tr><td style="text-align:right">{@code T}</td><td>{@link #getAnnotation(Class) getAnnotation(Class&lt;T&gt;)}
* <td></td><td></td><td>X</td><td></td> * <td></td><td></td><td>X</td><td></td>
* </tr> * </tr>
@ -127,6 +130,7 @@ import sun.reflect.annotation.AnnotationType;
* <tr><td style="text-align:right">{@code T[]}</td><td>{@link #getDeclaredAnnotationsByType(Class) getDeclaredAnnotationsByType(Class&lt;T&gt;)} * <tr><td style="text-align:right">{@code T[]}</td><td>{@link #getDeclaredAnnotationsByType(Class) getDeclaredAnnotationsByType(Class&lt;T&gt;)}
* <td>X</td><td>X</td><td></td><td></td> * <td>X</td><td>X</td><td></td><td></td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p>For an invocation of {@code get[Declared]AnnotationsByType( Class < * <p>For an invocation of {@code get[Declared]AnnotationsByType( Class <

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -32,12 +32,16 @@ package java.lang.reflect;
* provides a summary description of what the permission allows, * provides a summary description of what the permission allows,
* and discusses the risks of granting code the permission. * and discusses the risks of granting code the permission.
* *
* <table border=1 cellpadding=5 summary="Table shows permission target name, what the permission allows, and associated risks"> * <table class="striped">
* <caption style="display:none">Table shows permission target name, what the permission allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* <tbody>
* *
* <tr> * <tr>
* <td>suppressAccessChecks</td> * <td>suppressAccessChecks</td>
@ -58,6 +62,7 @@ package java.lang.reflect;
* help in its attempt to compromise security in the system.</td> * help in its attempt to compromise security in the system.</td>
* </tr> * </tr>
* *
* </tbody>
* </table> * </table>
* *
* @see java.security.Permission * @see java.security.Permission

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -120,15 +120,19 @@ import java.util.Arrays;
* preferred scale for representing a result. The preferred * preferred scale for representing a result. The preferred
* scale for each operation is listed in the table below. * scale for each operation is listed in the table below.
* *
* <table border> * <table class="plain">
* <caption><b>Preferred Scales for Results of Arithmetic Operations * <caption><b>Preferred Scales for Results of Arithmetic Operations
* </b></caption> * </b></caption>
* <thead>
* <tr><th>Operation</th><th>Preferred Scale of Result</th></tr> * <tr><th>Operation</th><th>Preferred Scale of Result</th></tr>
* </thead>
* <tbody>
* <tr><td>Add</td><td>max(addend.scale(), augend.scale())</td> * <tr><td>Add</td><td>max(addend.scale(), augend.scale())</td>
* <tr><td>Subtract</td><td>max(minuend.scale(), subtrahend.scale())</td> * <tr><td>Subtract</td><td>max(minuend.scale(), subtrahend.scale())</td>
* <tr><td>Multiply</td><td>multiplier.scale() + multiplicand.scale()</td> * <tr><td>Multiply</td><td>multiplier.scale() + multiplicand.scale()</td>
* <tr><td>Divide</td><td>dividend.scale() - divisor.scale()</td> * <tr><td>Divide</td><td>dividend.scale() - divisor.scale()</td>
* <tr><td>Square root</td><td>radicand.scale()/2</td> * <tr><td>Square root</td><td>radicand.scale()/2</td>
* </tbody>
* </table> * </table>
* *
* These scales are the ones used by the methods which return exact * These scales are the ones used by the methods which return exact

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -51,8 +51,9 @@ package java.math;
* proper {@code MathContext}. A summary table showing the results * proper {@code MathContext}. A summary table showing the results
* of these rounding operations for all rounding modes appears below. * of these rounding operations for all rounding modes appears below.
* *
*<table border> *<table class="plain">
* <caption><b>Summary of Rounding Operations Under Different Rounding Modes</b></caption> * <caption><b>Summary of Rounding Operations Under Different Rounding Modes</b></caption>
* <thead>
* <tr><th></th><th colspan=8>Result of rounding input to one digit with the given * <tr><th></th><th colspan=8>Result of rounding input to one digit with the given
* rounding mode</th> * rounding mode</th>
* <tr style="vertical-align:top"> * <tr style="vertical-align:top">
@ -64,6 +65,8 @@ package java.math;
* <th>{@code HALF_DOWN}</th> * <th>{@code HALF_DOWN}</th>
* <th>{@code HALF_EVEN}</th> * <th>{@code HALF_EVEN}</th>
* <th>{@code UNNECESSARY}</th> * <th>{@code UNNECESSARY}</th>
* </thead>
* <tbody>
* *
* <tr style="text-align:right"><td>5.5</td> <td>6</td> <td>5</td> <td>6</td> <td>5</td> <td>6</td> <td>5</td> <td>6</td> <td>throw {@code ArithmeticException}</td> * <tr style="text-align:right"><td>5.5</td> <td>6</td> <td>5</td> <td>6</td> <td>5</td> <td>6</td> <td>5</td> <td>6</td> <td>throw {@code ArithmeticException}</td>
* <tr style="text-align:right"><td>2.5</td> <td>3</td> <td>2</td> <td>3</td> <td>2</td> <td>3</td> <td>2</td> <td>2</td> <td>throw {@code ArithmeticException}</td> * <tr style="text-align:right"><td>2.5</td> <td>3</td> <td>2</td> <td>3</td> <td>2</td> <td>3</td> <td>2</td> <td>2</td> <td>throw {@code ArithmeticException}</td>
@ -75,6 +78,7 @@ package java.math;
* <tr style="text-align:right"><td>-1.6</td> <td>-2</td> <td>-1</td> <td>-1</td> <td>-2</td> <td>-2</td> <td>-2</td> <td>-2</td> <td>throw {@code ArithmeticException}</td> * <tr style="text-align:right"><td>-1.6</td> <td>-2</td> <td>-1</td> <td>-1</td> <td>-2</td> <td>-2</td> <td>-2</td> <td>-2</td> <td>throw {@code ArithmeticException}</td>
* <tr style="text-align:right"><td>-2.5</td> <td>-3</td> <td>-2</td> <td>-2</td> <td>-3</td> <td>-3</td> <td>-2</td> <td>-2</td> <td>throw {@code ArithmeticException}</td> * <tr style="text-align:right"><td>-2.5</td> <td>-3</td> <td>-2</td> <td>-2</td> <td>-3</td> <td>-3</td> <td>-2</td> <td>-2</td> <td>throw {@code ArithmeticException}</td>
* <tr style="text-align:right"><td>-5.5</td> <td>-6</td> <td>-5</td> <td>-5</td> <td>-6</td> <td>-6</td> <td>-5</td> <td>-6</td> <td>throw {@code ArithmeticException}</td> * <tr style="text-align:right"><td>-5.5</td> <td>-6</td> <td>-5</td> <td>-5</td> <td>-6</td> <td>-6</td> <td>-5</td> <td>-6</td> <td>throw {@code ArithmeticException}</td>
* </tbody>
* </table> * </table>
* *
* *
@ -100,10 +104,13 @@ public enum RoundingMode {
* value. * value.
* *
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode UP Examples</b></caption> * <caption><b>Rounding mode UP Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code UP} rounding * <th>Input rounded to one digit<br> with {@code UP} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>6</td> *<tr style="text-align:right"><td>5.5</td> <td>6</td>
*<tr style="text-align:right"><td>2.5</td> <td>3</td> *<tr style="text-align:right"><td>2.5</td> <td>3</td>
*<tr style="text-align:right"><td>1.6</td> <td>2</td> *<tr style="text-align:right"><td>1.6</td> <td>2</td>
@ -114,6 +121,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>-2</td> *<tr style="text-align:right"><td>-1.6</td> <td>-2</td>
*<tr style="text-align:right"><td>-2.5</td> <td>-3</td> *<tr style="text-align:right"><td>-2.5</td> <td>-3</td>
*<tr style="text-align:right"><td>-5.5</td> <td>-6</td> *<tr style="text-align:right"><td>-5.5</td> <td>-6</td>
*</tbody>
*</table> *</table>
*/ */
UP(BigDecimal.ROUND_UP), UP(BigDecimal.ROUND_UP),
@ -124,10 +132,13 @@ public enum RoundingMode {
* rounding mode never increases the magnitude of the calculated value. * rounding mode never increases the magnitude of the calculated value.
* *
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode DOWN Examples</b></caption> * <caption><b>Rounding mode DOWN Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code DOWN} rounding * <th>Input rounded to one digit<br> with {@code DOWN} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>5</td> *<tr style="text-align:right"><td>5.5</td> <td>5</td>
*<tr style="text-align:right"><td>2.5</td> <td>2</td> *<tr style="text-align:right"><td>2.5</td> <td>2</td>
*<tr style="text-align:right"><td>1.6</td> <td>1</td> *<tr style="text-align:right"><td>1.6</td> <td>1</td>
@ -138,6 +149,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>-1</td> *<tr style="text-align:right"><td>-1.6</td> <td>-1</td>
*<tr style="text-align:right"><td>-2.5</td> <td>-2</td> *<tr style="text-align:right"><td>-2.5</td> <td>-2</td>
*<tr style="text-align:right"><td>-5.5</td> <td>-5</td> *<tr style="text-align:right"><td>-5.5</td> <td>-5</td>
*</tbody>
*</table> *</table>
*/ */
DOWN(BigDecimal.ROUND_DOWN), DOWN(BigDecimal.ROUND_DOWN),
@ -149,10 +161,13 @@ public enum RoundingMode {
* that this rounding mode never decreases the calculated value. * that this rounding mode never decreases the calculated value.
* *
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode CEILING Examples</b></caption> * <caption><b>Rounding mode CEILING Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code CEILING} rounding * <th>Input rounded to one digit<br> with {@code CEILING} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>6</td> *<tr style="text-align:right"><td>5.5</td> <td>6</td>
*<tr style="text-align:right"><td>2.5</td> <td>3</td> *<tr style="text-align:right"><td>2.5</td> <td>3</td>
*<tr style="text-align:right"><td>1.6</td> <td>2</td> *<tr style="text-align:right"><td>1.6</td> <td>2</td>
@ -163,6 +178,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>-1</td> *<tr style="text-align:right"><td>-1.6</td> <td>-1</td>
*<tr style="text-align:right"><td>-2.5</td> <td>-2</td> *<tr style="text-align:right"><td>-2.5</td> <td>-2</td>
*<tr style="text-align:right"><td>-5.5</td> <td>-5</td> *<tr style="text-align:right"><td>-5.5</td> <td>-5</td>
*</tbody>
*</table> *</table>
*/ */
CEILING(BigDecimal.ROUND_CEILING), CEILING(BigDecimal.ROUND_CEILING),
@ -174,10 +190,13 @@ public enum RoundingMode {
* this rounding mode never increases the calculated value. * this rounding mode never increases the calculated value.
* *
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode FLOOR Examples</b></caption> * <caption><b>Rounding mode FLOOR Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code FLOOR} rounding * <th>Input rounded to one digit<br> with {@code FLOOR} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>5</td> *<tr style="text-align:right"><td>5.5</td> <td>5</td>
*<tr style="text-align:right"><td>2.5</td> <td>2</td> *<tr style="text-align:right"><td>2.5</td> <td>2</td>
*<tr style="text-align:right"><td>1.6</td> <td>1</td> *<tr style="text-align:right"><td>1.6</td> <td>1</td>
@ -188,6 +207,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>-2</td> *<tr style="text-align:right"><td>-1.6</td> <td>-2</td>
*<tr style="text-align:right"><td>-2.5</td> <td>-3</td> *<tr style="text-align:right"><td>-2.5</td> <td>-3</td>
*<tr style="text-align:right"><td>-5.5</td> <td>-6</td> *<tr style="text-align:right"><td>-5.5</td> <td>-6</td>
*</tbody>
*</table> *</table>
*/ */
FLOOR(BigDecimal.ROUND_FLOOR), FLOOR(BigDecimal.ROUND_FLOOR),
@ -201,10 +221,13 @@ public enum RoundingMode {
* mode commonly taught at school. * mode commonly taught at school.
* *
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode HALF_UP Examples</b></caption> * <caption><b>Rounding mode HALF_UP Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code HALF_UP} rounding * <th>Input rounded to one digit<br> with {@code HALF_UP} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>6</td> *<tr style="text-align:right"><td>5.5</td> <td>6</td>
*<tr style="text-align:right"><td>2.5</td> <td>3</td> *<tr style="text-align:right"><td>2.5</td> <td>3</td>
*<tr style="text-align:right"><td>1.6</td> <td>2</td> *<tr style="text-align:right"><td>1.6</td> <td>2</td>
@ -215,6 +238,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>-2</td> *<tr style="text-align:right"><td>-1.6</td> <td>-2</td>
*<tr style="text-align:right"><td>-2.5</td> <td>-3</td> *<tr style="text-align:right"><td>-2.5</td> <td>-3</td>
*<tr style="text-align:right"><td>-5.5</td> <td>-6</td> *<tr style="text-align:right"><td>-5.5</td> <td>-6</td>
*</tbody>
*</table> *</table>
*/ */
HALF_UP(BigDecimal.ROUND_HALF_UP), HALF_UP(BigDecimal.ROUND_HALF_UP),
@ -227,10 +251,13 @@ public enum RoundingMode {
* {@code RoundingMode.DOWN}. * {@code RoundingMode.DOWN}.
* *
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode HALF_DOWN Examples</b></caption> * <caption><b>Rounding mode HALF_DOWN Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code HALF_DOWN} rounding * <th>Input rounded to one digit<br> with {@code HALF_DOWN} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>5</td> *<tr style="text-align:right"><td>5.5</td> <td>5</td>
*<tr style="text-align:right"><td>2.5</td> <td>2</td> *<tr style="text-align:right"><td>2.5</td> <td>2</td>
*<tr style="text-align:right"><td>1.6</td> <td>2</td> *<tr style="text-align:right"><td>1.6</td> <td>2</td>
@ -241,6 +268,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>-2</td> *<tr style="text-align:right"><td>-1.6</td> <td>-2</td>
*<tr style="text-align:right"><td>-2.5</td> <td>-2</td> *<tr style="text-align:right"><td>-2.5</td> <td>-2</td>
*<tr style="text-align:right"><td>-5.5</td> <td>-5</td> *<tr style="text-align:right"><td>-5.5</td> <td>-5</td>
*</tbody>
*</table> *</table>
*/ */
HALF_DOWN(BigDecimal.ROUND_HALF_DOWN), HALF_DOWN(BigDecimal.ROUND_HALF_DOWN),
@ -260,10 +288,13 @@ public enum RoundingMode {
* arithmetic in Java. * arithmetic in Java.
* *
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode HALF_EVEN Examples</b></caption> * <caption><b>Rounding mode HALF_EVEN Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code HALF_EVEN} rounding * <th>Input rounded to one digit<br> with {@code HALF_EVEN} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>6</td> *<tr style="text-align:right"><td>5.5</td> <td>6</td>
*<tr style="text-align:right"><td>2.5</td> <td>2</td> *<tr style="text-align:right"><td>2.5</td> <td>2</td>
*<tr style="text-align:right"><td>1.6</td> <td>2</td> *<tr style="text-align:right"><td>1.6</td> <td>2</td>
@ -274,6 +305,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>-2</td> *<tr style="text-align:right"><td>-1.6</td> <td>-2</td>
*<tr style="text-align:right"><td>-2.5</td> <td>-2</td> *<tr style="text-align:right"><td>-2.5</td> <td>-2</td>
*<tr style="text-align:right"><td>-5.5</td> <td>-6</td> *<tr style="text-align:right"><td>-5.5</td> <td>-6</td>
*</tbody>
*</table> *</table>
*/ */
HALF_EVEN(BigDecimal.ROUND_HALF_EVEN), HALF_EVEN(BigDecimal.ROUND_HALF_EVEN),
@ -284,10 +316,13 @@ public enum RoundingMode {
* specified on an operation that yields an inexact result, an * specified on an operation that yields an inexact result, an
* {@code ArithmeticException} is thrown. * {@code ArithmeticException} is thrown.
*<p>Example: *<p>Example:
*<table border> *<table class="plain">
* <caption><b>Rounding mode UNNECESSARY Examples</b></caption> * <caption><b>Rounding mode UNNECESSARY Examples</b></caption>
*<thead>
*<tr style="vertical-align:top"><th>Input Number</th> *<tr style="vertical-align:top"><th>Input Number</th>
* <th>Input rounded to one digit<br> with {@code UNNECESSARY} rounding * <th>Input rounded to one digit<br> with {@code UNNECESSARY} rounding
*</thead>
*<tbody>
*<tr style="text-align:right"><td>5.5</td> <td>throw {@code ArithmeticException}</td> *<tr style="text-align:right"><td>5.5</td> <td>throw {@code ArithmeticException}</td>
*<tr style="text-align:right"><td>2.5</td> <td>throw {@code ArithmeticException}</td> *<tr style="text-align:right"><td>2.5</td> <td>throw {@code ArithmeticException}</td>
*<tr style="text-align:right"><td>1.6</td> <td>throw {@code ArithmeticException}</td> *<tr style="text-align:right"><td>1.6</td> <td>throw {@code ArithmeticException}</td>
@ -298,6 +333,7 @@ public enum RoundingMode {
*<tr style="text-align:right"><td>-1.6</td> <td>throw {@code ArithmeticException}</td> *<tr style="text-align:right"><td>-1.6</td> <td>throw {@code ArithmeticException}</td>
*<tr style="text-align:right"><td>-2.5</td> <td>throw {@code ArithmeticException}</td> *<tr style="text-align:right"><td>-2.5</td> <td>throw {@code ArithmeticException}</td>
*<tr style="text-align:right"><td>-5.5</td> <td>throw {@code ArithmeticException}</td> *<tr style="text-align:right"><td>-5.5</td> <td>throw {@code ArithmeticException}</td>
*</tbody>
*</table> *</table>
*/ */
UNNECESSARY(BigDecimal.ROUND_UNNECESSARY); UNNECESSARY(BigDecimal.ROUND_UNNECESSARY);

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -41,12 +41,12 @@ import java.io.ObjectStreamException;
* Textual representation of IPv4 address used as input to methods * Textual representation of IPv4 address used as input to methods
* takes one of the following forms: * takes one of the following forms:
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code d.d.d.d}</td></tr> * <li>{@code d.d.d.d}</li>
* <tr><td>{@code d.d.d}</td></tr> * <li>{@code d.d.d}</li>
* <tr><td>{@code d.d}</td></tr> * <li>{@code d.d}</li>
* <tr><td>{@code d}</td></tr> * <li>{@code d}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <p> When four parts are specified, each is interpreted as a byte of * <p> When four parts are specified, each is interpreted as a byte of
* data and assigned, from left to right, to the four bytes of an IPv4 * data and assigned, from left to right, to the four bytes of an IPv4

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -49,9 +49,9 @@ import java.util.Arrays;
* the hexadecimal values of the eight 16-bit pieces of the * the hexadecimal values of the eight 16-bit pieces of the
* address. This is the full form. For example, * address. This is the full form. For example,
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code 1080:0:0:0:8:800:200C:417A}<td></tr> * <li>{@code 1080:0:0:0:8:800:200C:417A}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <p> Note that it is not necessary to write the leading zeros in * <p> Note that it is not necessary to write the leading zeros in
* an individual field. However, there must be at least one numeral * an individual field. However, there must be at least one numeral
@ -66,9 +66,9 @@ import java.util.Arrays;
* The "::" can also be used to compress the leading and/or trailing * The "::" can also be used to compress the leading and/or trailing
* zeros in an address. For example, * zeros in an address. For example,
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code 1080::8:800:200C:417A}<td></tr> * <li>{@code 1080::8:800:200C:417A}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <li><p> An alternative form that is sometimes more convenient * <li><p> An alternative form that is sometimes more convenient
* when dealing with a mixed environment of IPv4 and IPv6 nodes is * when dealing with a mixed environment of IPv4 and IPv6 nodes is
@ -77,35 +77,35 @@ import java.util.Arrays;
* are the decimal values of the four low-order 8-bit pieces of the * are the decimal values of the four low-order 8-bit pieces of the
* standard IPv4 representation address, for example, * standard IPv4 representation address, for example,
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code ::FFFF:129.144.52.38}<td></tr> * <li>{@code ::FFFF:129.144.52.38}</li>
* <tr><td>{@code ::129.144.52.38}<td></tr> * <li>{@code ::129.144.52.38}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <p> where "::FFFF:d.d.d.d" and "::d.d.d.d" are, respectively, the * <p> where "::FFFF:d.d.d.d" and "::d.d.d.d" are, respectively, the
* general forms of an IPv4-mapped IPv6 address and an * general forms of an IPv4-mapped IPv6 address and an
* IPv4-compatible IPv6 address. Note that the IPv4 portion must be * IPv4-compatible IPv6 address. Note that the IPv4 portion must be
* in the "d.d.d.d" form. The following forms are invalid: * in the "d.d.d.d" form. The following forms are invalid:
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code ::FFFF:d.d.d}<td></tr> * <li>{@code ::FFFF:d.d.d}</li>
* <tr><td>{@code ::FFFF:d.d}<td></tr> * <li>{@code ::FFFF:d.d}</li>
* <tr><td>{@code ::d.d.d}<td></tr> * <li>{@code ::d.d.d}</li>
* <tr><td>{@code ::d.d}<td></tr> * <li>{@code ::d.d}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <p> The following form: * <p> The following form:
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code ::FFFF:d}<td></tr> * <li>{@code ::FFFF:d}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <p> is valid, however it is an unconventional representation of * <p> is valid, however it is an unconventional representation of
* the IPv4-compatible IPv6 address, * the IPv4-compatible IPv6 address,
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code ::255.255.0.d}<td></tr> * <li>{@code ::255.255.0.d}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <p> while "::d" corresponds to the general IPv6 address * <p> while "::d" corresponds to the general IPv6 address
* "0:0:0:0:0:0:0:d".</li> * "0:0:0:0:0:0:0:d".</li>
@ -119,8 +119,9 @@ import java.util.Arrays;
* <h4> Special IPv6 address </h4> * <h4> Special IPv6 address </h4>
* *
* <blockquote> * <blockquote>
* <table cellspacing=2 summary="Description of IPv4-mapped address"> * <table class="borderless">
* <tr><th valign=top><i>IPv4-mapped address</i></th> * <caption style="display:none">Description of IPv4-mapped address</caption>
* <tr><th style="vertical-align:top; padding-right:2px"><i>IPv4-mapped address</i></th>
* <td>Of the form ::ffff:w.x.y.z, this IPv6 address is used to * <td>Of the form ::ffff:w.x.y.z, this IPv6 address is used to
* represent an IPv4 address. It allows the native program to * represent an IPv4 address. It allows the native program to
* use the same address data structure and also the same * use the same address data structure and also the same

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -72,7 +72,9 @@ import sun.net.util.IPAddressUtil;
* *
* <h3> Address types </h3> * <h3> Address types </h3>
* *
* <blockquote><table cellspacing=2 summary="Description of unicast and multicast address types"> * <blockquote><table class="borderless">
* <caption style="display:none">Description of unicast and multicast address types</caption>
* <tbody>
* <tr><th valign=top><i>unicast</i></th> * <tr><th valign=top><i>unicast</i></th>
* <td>An identifier for a single interface. A packet sent to * <td>An identifier for a single interface. A packet sent to
* a unicast address is delivered to the interface identified by * a unicast address is delivered to the interface identified by
@ -96,6 +98,7 @@ import sun.net.util.IPAddressUtil;
* <td>An identifier for a set of interfaces (typically belonging * <td>An identifier for a set of interfaces (typically belonging
* to different nodes). A packet sent to a multicast address is * to different nodes). A packet sent to a multicast address is
* delivered to all interfaces identified by that address.</td></tr> * delivered to all interfaces identified by that address.</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* <h4> IP address scope </h4> * <h4> IP address scope </h4>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -47,12 +47,16 @@ import java.util.StringTokenizer;
* and for each provides a description of what the permission allows * and for each provides a description of what the permission allows
* and a discussion of the risks of granting code the permission. * and a discussion of the risks of granting code the permission.
* *
* <table border=1 cellpadding=5 summary="Permission target name, what the permission allows, and associated risks"> * <table class="striped">
* <caption style="display:none">Permission target name, what the permission allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td>allowHttpTrace</td> * <td>allowHttpTrace</td>
* <td>The ability to use the HTTP TRACE method in HttpURLConnection.</td> * <td>The ability to use the HTTP TRACE method in HttpURLConnection.</td>
@ -151,6 +155,7 @@ import java.util.StringTokenizer;
* creating a ProtectionDomain/CodeSource for a class even though * creating a ProtectionDomain/CodeSource for a class even though
* that class really didn't come from that location.</td> * that class really didn't come from that location.</td>
* </tr> * </tr>
</tbody>
* </table> * </table>
* *
* @see java.security.BasicPermission * @see java.security.BasicPermission

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -83,11 +83,11 @@ import java.lang.NullPointerException; // for javadoc
* not begin with a slash character ({@code '/'}). Opaque URIs are not * not begin with a slash character ({@code '/'}). Opaque URIs are not
* subject to further parsing. Some examples of opaque URIs are: * subject to further parsing. Some examples of opaque URIs are:
* *
* <blockquote><table cellpadding=0 cellspacing=0 summary="layout"> * <blockquote><ul style="list-style-type:none">
* <tr><td>{@code mailto:java-net@java.sun.com}<td></tr> * <li>{@code mailto:java-net@java.sun.com}</li>
* <tr><td>{@code news:comp.lang.java}<td></tr> * <li>{@code news:comp.lang.java}</li>
* <tr><td>{@code urn:isbn:096139210x}</td></tr> * <li>{@code urn:isbn:096139210x}</li>
* </table></blockquote> * </ul></blockquote>
* *
* <p> A <i>hierarchical</i> URI is either an absolute URI whose * <p> A <i>hierarchical</i> URI is either an absolute URI whose
* scheme-specific part begins with a slash character, or a relative URI, that * scheme-specific part begins with a slash character, or a relative URI, that
@ -132,8 +132,12 @@ import java.lang.NullPointerException; // for javadoc
* *
* <p> All told, then, a URI instance has the following nine components: * <p> All told, then, a URI instance has the following nine components:
* *
* <blockquote><table summary="Describes the components of a URI:scheme,scheme-specific-part,authority,user-info,host,port,path,query,fragment"> * <blockquote><table class="borderless">
* <caption style="display:none">Describes the components of a URI:scheme,scheme-specific-part,authority,user-info,host,port,path,query,fragment</caption>
* <thead>
* <tr><th><i>Component</i></th><th><i>Type</i></th></tr> * <tr><th><i>Component</i></th><th><i>Type</i></th></tr>
* </thead>
* <tbody>
* <tr><td>scheme</td><td>{@code String}</td></tr> * <tr><td>scheme</td><td>{@code String}</td></tr>
* <tr><td>scheme-specific-part&nbsp;&nbsp;&nbsp;&nbsp;</td><td>{@code String}</td></tr> * <tr><td>scheme-specific-part&nbsp;&nbsp;&nbsp;&nbsp;</td><td>{@code String}</td></tr>
* <tr><td>authority</td><td>{@code String}</td></tr> * <tr><td>authority</td><td>{@code String}</td></tr>
@ -143,6 +147,7 @@ import java.lang.NullPointerException; // for javadoc
* <tr><td>path</td><td>{@code String}</td></tr> * <tr><td>path</td><td>{@code String}</td></tr>
* <tr><td>query</td><td>{@code String}</td></tr> * <tr><td>query</td><td>{@code String}</td></tr>
* <tr><td>fragment</td><td>{@code String}</td></tr> * <tr><td>fragment</td><td>{@code String}</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* In a given instance any particular component is either <i>undefined</i> or * In a given instance any particular component is either <i>undefined</i> or
@ -248,7 +253,9 @@ import java.lang.NullPointerException; // for javadoc
* which are taken from that specification, are used below to describe these * which are taken from that specification, are used below to describe these
* constraints: * constraints:
* *
* <blockquote><table cellspacing=2 summary="Describes categories alpha,digit,alphanum,unreserved,punct,reserved,escaped,and other"> * <blockquote><table>
* <caption style="display:none">Describes categories alpha,digit,alphanum,unreserved,punct,reserved,escaped,and other</caption>
* <tbody>
* <tr><th valign=top><i>alpha</i></th> * <tr><th valign=top><i>alpha</i></th>
* <td>The US-ASCII alphabetic characters, * <td>The US-ASCII alphabetic characters,
* {@code 'A'}&nbsp;through&nbsp;{@code 'Z'} * {@code 'A'}&nbsp;through&nbsp;{@code 'Z'}
@ -279,6 +286,7 @@ import java.lang.NullPointerException; // for javadoc
* java.lang.Character#isSpaceChar(char) Character.isSpaceChar} * java.lang.Character#isSpaceChar(char) Character.isSpaceChar}
* method)&nbsp;&nbsp;<i>(<b>Deviation from RFC 2396</b>, which is * method)&nbsp;&nbsp;<i>(<b>Deviation from RFC 2396</b>, which is
* limited to US-ASCII)</i></td></tr> * limited to US-ASCII)</i></td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* <p><a id="legal-chars"></a> The set of all legal URI characters consists of * <p><a id="legal-chars"></a> The set of all legal URI characters consists of

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -54,13 +54,18 @@ import sun.security.action.GetPropertyAction;
* read from and to write to the resource referenced by the URL. In * read from and to write to the resource referenced by the URL. In
* general, creating a connection to a URL is a multistep process: * general, creating a connection to a URL is a multistep process:
* *
* <div style="text-align:center"><table style="margin:0 auto" border=2 summary="Describes the process of creating a connection to a URL: openConnection() and connect() over time."> * <div style="text-align:center"><table class="plain" style="margin:0 auto">
* <caption style="display:none">Describes the process of creating a connection to a URL: openConnection() and connect() over time.</caption>
* <thead>
* <tr><th>{@code openConnection()}</th> * <tr><th>{@code openConnection()}</th>
* <th>{@code connect()}</th></tr> * <th>{@code connect()}</th></tr>
* </thead>
* <tbody>
* <tr><td>Manipulate parameters that affect the connection to the remote * <tr><td>Manipulate parameters that affect the connection to the remote
* resource.</td> * resource.</td>
* <td>Interact with the resource; query header fields and * <td>Interact with the resource; query header fields and
* contents.</td></tr> * contents.</td></tr>
* </tbody>
* </table> * </table>
* ----------------------------&gt; * ----------------------------&gt;
* <br>time</div> * <br>time</div>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -72,9 +72,12 @@ import java.security.Permission;
* separated by '/' characters. <i>path</i> may also be empty. The path is specified * separated by '/' characters. <i>path</i> may also be empty. The path is specified
* in a similar way to the path in {@link java.io.FilePermission}. There are * in a similar way to the path in {@link java.io.FilePermission}. There are
* three different ways as the following examples show: * three different ways as the following examples show:
* <table border> * <table class="plain">
* <caption>URL Examples</caption> * <caption>URL Examples</caption>
* <thead>
* <tr><th>Example url</th><th>Description</th></tr> * <tr><th>Example url</th><th>Description</th></tr>
* </thead>
* <tbody>
* <tr><td style="white-space:nowrap;">http://www.oracle.com/a/b/c.html</td> * <tr><td style="white-space:nowrap;">http://www.oracle.com/a/b/c.html</td>
* <td>A url which identifies a specific (single) resource</td> * <td>A url which identifies a specific (single) resource</td>
* </tr> * </tr>
@ -90,6 +93,7 @@ import java.security.Permission;
* example). * example).
* </td> * </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* <p> * <p>
* The '*' and '-' may only be specified in the final segment of a path and must be * The '*' and '-' may only be specified in the final segment of a path and must be
@ -246,9 +250,12 @@ public final class URLPermission extends Permission {
* <li>otherwise, return false</li> * <li>otherwise, return false</li>
* </ul> * </ul>
* <p>Some examples of how paths are matched are shown below: * <p>Some examples of how paths are matched are shown below:
* <table border> * <table class="plain">
* <caption>Examples of Path Matching</caption> * <caption>Examples of Path Matching</caption>
* <thead>
* <tr><th>this's path</th><th>p's path</th><th>match</th></tr> * <tr><th>this's path</th><th>p's path</th><th>match</th></tr>
* </thead>
* <tbody>
* <tr><td>/a/b</td><td>/a/b</td><td>yes</td></tr> * <tr><td>/a/b</td><td>/a/b</td><td>yes</td></tr>
* <tr><td>/a/b/*</td><td>/a/b/c</td><td>yes</td></tr> * <tr><td>/a/b/*</td><td>/a/b/c</td><td>yes</td></tr>
* <tr><td>/a/b/*</td><td>/a/b/c/d</td><td>no</td></tr> * <tr><td>/a/b/*</td><td>/a/b/c/d</td><td>no</td></tr>
@ -256,6 +263,7 @@ public final class URLPermission extends Permission {
* <tr><td>/a/b/-</td><td>/a/b/c/d/e</td><td>yes</td></tr> * <tr><td>/a/b/-</td><td>/a/b/c/d/e</td><td>yes</td></tr>
* <tr><td>/a/b/-</td><td>/a/b/c/*</td><td>yes</td></tr> * <tr><td>/a/b/-</td><td>/a/b/c/*</td><td>yes</td></tr>
* <tr><td>/a/b/*</td><td>/a/b/c/-</td><td>no</td></tr> * <tr><td>/a/b/*</td><td>/a/b/c/-</td><td>no</td></tr>
* </tbody>
* </table> * </table>
*/ */
public boolean implies(Permission p) { public boolean implies(Permission p) {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -60,11 +60,15 @@ import java.util.concurrent.TimeUnit;
* default group is not configured then the pooled threads of the default group * default group is not configured then the pooled threads of the default group
* are {@link Thread#isDaemon daemon} threads. * are {@link Thread#isDaemon daemon} threads.
* *
* <table border summary="System properties"> * <table class="striped">
* <caption style="display:none:">System properties</caption>
* <thead>
* <tr> * <tr>
* <th>System property</th> * <th>System property</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@code java.nio.channels.DefaultThreadPool.threadFactory} </td> * <td> {@code java.nio.channels.DefaultThreadPool.threadFactory} </td>
* <td> The value of this property is taken to be the fully-qualified name * <td> The value of this property is taken to be the fully-qualified name
@ -86,6 +90,7 @@ import java.util.concurrent.TimeUnit;
* unspecified error to be thrown during the construction of the default * unspecified error to be thrown during the construction of the default
* group. </td> * group. </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <a id="threading"></a><h2>Threading</h2> * <a id="threading"></a><h2>Threading</h2>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -133,8 +133,12 @@ public abstract class AsynchronousFileChannel
* <p> In addition to {@code READ} and {@code WRITE}, the following options * <p> In addition to {@code READ} and {@code WRITE}, the following options
* may be present: * may be present:
* *
* <table border=1 cellpadding=5 summary=""> * <table class="striped">
* <caption style="display:none">additional options</caption>
* <thead>
* <tr> <th>Option</th> <th>Description</th> </tr> * <tr> <th>Option</th> <th>Description</th> </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} </td> * <td> {@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} </td>
* <td> When opening an existing file, the file is first truncated to a * <td> When opening an existing file, the file is first truncated to a
@ -186,6 +190,7 @@ public abstract class AsynchronousFileChannel
* href="../file/package-summary.html#integrity"> Synchronized I/O file * href="../file/package-summary.html#integrity"> Synchronized I/O file
* integrity</a>). </td> * integrity</a>). </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p> An implementation may also support additional options. * <p> An implementation may also support additional options.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -52,11 +52,15 @@ import java.io.IOException;
* <p> Socket options are configured using the {@link #setOption(SocketOption,Object) * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
* setOption} method. Channels of this type support the following options: * setOption} method. Channels of this type support the following options:
* <blockquote> * <blockquote>
* <table border summary="Socket options"> * <table class="striped">
* <caption style="display:none">Socket options</caption>
* <thead>
* <tr> * <tr>
* <th>Option Name</th> * <th>Option Name</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link java.net.StandardSocketOptions#SO_RCVBUF SO_RCVBUF} </td> * <td> {@link java.net.StandardSocketOptions#SO_RCVBUF SO_RCVBUF} </td>
* <td> The size of the socket receive buffer </td> * <td> The size of the socket receive buffer </td>
@ -65,6 +69,7 @@ import java.io.IOException;
* <td> {@link java.net.StandardSocketOptions#SO_REUSEADDR SO_REUSEADDR} </td> * <td> {@link java.net.StandardSocketOptions#SO_REUSEADDR SO_REUSEADDR} </td>
* <td> Re-use address </td> * <td> Re-use address </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* Additional (implementation specific) options may also be supported. * Additional (implementation specific) options may also be supported.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -62,11 +62,15 @@ import java.nio.ByteBuffer;
* <p> Socket options are configured using the {@link #setOption(SocketOption,Object) * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
* setOption} method. Asynchronous socket channels support the following options: * setOption} method. Asynchronous socket channels support the following options:
* <blockquote> * <blockquote>
* <table border summary="Socket options"> * <table class="striped">
* <caption style="display:none">Socket options</caption>
* <thead>
* <tr> * <tr>
* <th>Option Name</th> * <th>Option Name</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link java.net.StandardSocketOptions#SO_SNDBUF SO_SNDBUF} </td> * <td> {@link java.net.StandardSocketOptions#SO_SNDBUF SO_SNDBUF} </td>
* <td> The size of the socket send buffer </td> * <td> The size of the socket send buffer </td>
@ -87,6 +91,7 @@ import java.nio.ByteBuffer;
* <td> {@link java.net.StandardSocketOptions#TCP_NODELAY TCP_NODELAY} </td> * <td> {@link java.net.StandardSocketOptions#TCP_NODELAY TCP_NODELAY} </td>
* <td> Disable the Nagle algorithm </td> * <td> Disable the Nagle algorithm </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* Additional (implementation specific) options may also be supported. * Additional (implementation specific) options may also be supported.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -57,11 +57,15 @@ import java.nio.channels.spi.SelectorProvider;
* setOption} method. A datagram channel to an Internet Protocol socket supports * setOption} method. A datagram channel to an Internet Protocol socket supports
* the following options: * the following options:
* <blockquote> * <blockquote>
* <table border summary="Socket options"> * <table class="striped">
* <caption style="display:none">Socket options</caption>
* <thead>
* <tr> * <tr>
* <th>Option Name</th> * <th>Option Name</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link java.net.StandardSocketOptions#SO_SNDBUF SO_SNDBUF} </td> * <td> {@link java.net.StandardSocketOptions#SO_SNDBUF SO_SNDBUF} </td>
* <td> The size of the socket send buffer </td> * <td> The size of the socket send buffer </td>
@ -97,6 +101,7 @@ import java.nio.channels.spi.SelectorProvider;
* IP_MULTICAST_LOOP} </td> * IP_MULTICAST_LOOP} </td>
* <td> Loopback for Internet Protocol (IP) multicast datagrams </td> * <td> Loopback for Internet Protocol (IP) multicast datagrams </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* Additional (implementation specific) options may also be supported. * Additional (implementation specific) options may also be supported.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -174,8 +174,12 @@ public abstract class FileChannel
* <p> In the addition to {@code READ} and {@code WRITE}, the following * <p> In the addition to {@code READ} and {@code WRITE}, the following
* options may be present: * options may be present:
* *
* <table border=1 cellpadding=5 summary=""> * <table class="striped">
* <caption style="display:none">additional options</caption>
* <thead>
* <tr> <th>Option</th> <th>Description</th> </tr> * <tr> <th>Option</th> <th>Description</th> </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link StandardOpenOption#APPEND APPEND} </td> * <td> {@link StandardOpenOption#APPEND APPEND} </td>
* <td> If this option is present then the file is opened for writing and * <td> If this option is present then the file is opened for writing and
@ -237,6 +241,7 @@ public abstract class FileChannel
* href="../file/package-summary.html#integrity"> Synchronized I/O file * href="../file/package-summary.html#integrity"> Synchronized I/O file
* integrity</a>). </td> * integrity</a>). </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p> An implementation may also support additional options. * <p> An implementation may also support additional options.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -46,11 +46,15 @@ import java.nio.channels.spi.SelectorProvider;
* <p> Socket options are configured using the {@link #setOption(SocketOption,Object) * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
* setOption} method. Server-socket channels support the following options: * setOption} method. Server-socket channels support the following options:
* <blockquote> * <blockquote>
* <table border summary="Socket options"> * <table class="striped">
* <caption style="display:none">Socket options</caption>
* <thead>
* <tr> * <tr>
* <th>Option Name</th> * <th>Option Name</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link java.net.StandardSocketOptions#SO_RCVBUF SO_RCVBUF} </td> * <td> {@link java.net.StandardSocketOptions#SO_RCVBUF SO_RCVBUF} </td>
* <td> The size of the socket receive buffer </td> * <td> The size of the socket receive buffer </td>
@ -59,6 +63,7 @@ import java.nio.channels.spi.SelectorProvider;
* <td> {@link java.net.StandardSocketOptions#SO_REUSEADDR SO_REUSEADDR} </td> * <td> {@link java.net.StandardSocketOptions#SO_REUSEADDR SO_REUSEADDR} </td>
* <td> Re-use address </td> * <td> Re-use address </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* Additional (implementation specific) options may also be supported. * Additional (implementation specific) options may also be supported.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -66,11 +66,15 @@ import java.nio.channels.spi.SelectorProvider;
* <p> Socket options are configured using the {@link #setOption(SocketOption,Object) * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
* setOption} method. Socket channels support the following options: * setOption} method. Socket channels support the following options:
* <blockquote> * <blockquote>
* <table border summary="Socket options"> * <table class="striped">
* <caption style="display:none">Socket options</caption>
* <thead>
* <tr> * <tr>
* <th>Option Name</th> * <th>Option Name</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link java.net.StandardSocketOptions#SO_SNDBUF SO_SNDBUF} </td> * <td> {@link java.net.StandardSocketOptions#SO_SNDBUF SO_SNDBUF} </td>
* <td> The size of the socket send buffer </td> * <td> The size of the socket send buffer </td>
@ -96,6 +100,7 @@ import java.nio.channels.spi.SelectorProvider;
* <td> {@link java.net.StandardSocketOptions#TCP_NODELAY TCP_NODELAY} </td> * <td> {@link java.net.StandardSocketOptions#TCP_NODELAY TCP_NODELAY} </td>
* <td> Disable the Nagle algorithm </td> * <td> Disable the Nagle algorithm </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* Additional (implementation specific) options may also be supported. * Additional (implementation specific) options may also be supported.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -147,8 +147,12 @@ import sun.security.action.GetPropertyAction;
* implementation to see if any other charsets are supported. The behavior * implementation to see if any other charsets are supported. The behavior
* of such optional charsets may differ between implementations. * of such optional charsets may differ between implementations.
* *
* <blockquote><table style="width:80%" summary="Description of standard charsets"> * <blockquote><table class="striped" style="width:80%">
* <caption style="display:none">Description of standard charsets</caption>
* <thead>
* <tr><th style="text-align:left">Charset</th><th style="text-align:left">Description</th></tr> * <tr><th style="text-align:left">Charset</th><th style="text-align:left">Description</th></tr>
* </thead>
* <tbody>
* <tr><td style="vertical-align:top">{@code US-ASCII}</td> * <tr><td style="vertical-align:top">{@code US-ASCII}</td>
* <td>Seven-bit ASCII, a.k.a. {@code ISO646-US}, * <td>Seven-bit ASCII, a.k.a. {@code ISO646-US},
* a.k.a. the Basic Latin block of the Unicode character set</td></tr> * a.k.a. the Basic Latin block of the Unicode character set</td></tr>
@ -165,6 +169,7 @@ import sun.security.action.GetPropertyAction;
* <tr><td style="vertical-align:top">{@code UTF-16}</td> * <tr><td style="vertical-align:top">{@code UTF-16}</td>
* <td>Sixteen-bit UCS Transformation Format, * <td>Sixteen-bit UCS Transformation Format,
* byte&nbsp;order identified by an optional byte-order mark</td></tr> * byte&nbsp;order identified by an optional byte-order mark</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* <p> The {@code UTF-8} charset is specified by <a * <p> The {@code UTF-8} charset is specified by <a

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -315,7 +315,9 @@ public abstract class FileSystem
* that resembles regular expressions but with a simpler syntax. For example: * that resembles regular expressions but with a simpler syntax. For example:
* *
* <blockquote> * <blockquote>
* <table border="0" summary="Pattern Language"> * <table class="borderless">
* <caption style="display:none">Pattern Language</caption>
* <tbody>
* <tr> * <tr>
* <td>{@code *.java}</td> * <td>{@code *.java}</td>
* <td>Matches a path that represents a file name ending in {@code .java}</td> * <td>Matches a path that represents a file name ending in {@code .java}</td>
@ -348,7 +350,7 @@ public abstract class FileSystem
* platform (note that the backslash is escaped; as a string literal in the * platform (note that the backslash is escaped; as a string literal in the
* Java Language the pattern would be <code>"C:&#92;&#92;&#92;&#92;*"</code>) </td> * Java Language the pattern would be <code>"C:&#92;&#92;&#92;&#92;*"</code>) </td>
* </tr> * </tr>
* * </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -233,8 +233,12 @@ public final class Files {
* <p> In the addition to {@code READ} and {@code WRITE}, the following * <p> In the addition to {@code READ} and {@code WRITE}, the following
* options may be present: * options may be present:
* *
* <table border=1 cellpadding=5 summary="Options"> * <table class="striped">
* <caption style="display:none">Options</caption>
* <thead>
* <tr> <th>Option</th> <th>Description</th> </tr> * <tr> <th>Option</th> <th>Description</th> </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link StandardOpenOption#APPEND APPEND} </td> * <td> {@link StandardOpenOption#APPEND APPEND} </td>
* <td> If this option is present then the file is opened for writing and * <td> If this option is present then the file is opened for writing and
@ -294,6 +298,7 @@ public final class Files {
* href="package-summary.html#integrity"> Synchronized I/O file * href="package-summary.html#integrity"> Synchronized I/O file
* integrity</a>). </td> * integrity</a>). </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p> An implementation may also support additional implementation specific * <p> An implementation may also support additional implementation specific
@ -1188,8 +1193,12 @@ public final class Files {
* *
* <p> The {@code options} parameter may include any of the following: * <p> The {@code options} parameter may include any of the following:
* *
* <table border=1 cellpadding=5 summary=""> * <table class="striped">
* <caption style="display:none">Options</caption>
* <thead>
* <tr> <th>Option</th> <th>Description</th> </tr> * <tr> <th>Option</th> <th>Description</th> </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td> * <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td>
* <td> If the target file exists, then the target file is replaced if it * <td> If the target file exists, then the target file is replaced if it
@ -1215,6 +1224,7 @@ public final class Files {
* new link. In other words, the {@code COPY_ATTRIBUTES} option may be * new link. In other words, the {@code COPY_ATTRIBUTES} option may be
* ignored when copying a symbolic link. </td> * ignored when copying a symbolic link. </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p> An implementation of this interface may support additional * <p> An implementation of this interface may support additional
@ -1306,8 +1316,12 @@ public final class Files {
* *
* <p> The {@code options} parameter may include any of the following: * <p> The {@code options} parameter may include any of the following:
* *
* <table border=1 cellpadding=5 summary=""> * <table class="striped">
* <caption style="display:none">Options</caption>
* <thead>
* <tr> <th>Option</th> <th>Description</th> </tr> * <tr> <th>Option</th> <th>Description</th> </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td> * <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td>
* <td> If the target file exists, then the target file is replaced if it * <td> If the target file exists, then the target file is replaced if it
@ -1326,6 +1340,7 @@ public final class Files {
* example, when the target location is on a different {@code FileStore} * example, when the target location is on a different {@code FileStore}
* and would require that the file be copied, or target location is * and would require that the file be copied, or target location is
* associated with a different provider to this object. </td> * associated with a different provider to this object. </td>
* </tbody>
* </table> * </table>
* *
* <p> An implementation of this interface may support additional * <p> An implementation of this interface may support additional
@ -1909,7 +1924,9 @@ public final class Files {
* attributes} parameter: * attributes} parameter:
* *
* <blockquote> * <blockquote>
* <table border="0" summary="Possible values"> * <table class="borderless">
* <caption style="display:none">Possible values</caption>
* <tbody>
* <tr> * <tr>
* <td> {@code "*"} </td> * <td> {@code "*"} </td>
* <td> Read all {@link BasicFileAttributes basic-file-attributes}. </td> * <td> Read all {@link BasicFileAttributes basic-file-attributes}. </td>
@ -1927,6 +1944,7 @@ public final class Files {
* <td> {@code "posix:permissions,owner,size"} </td> * <td> {@code "posix:permissions,owner,size"} </td>
* <td> Reads the POSIX file permissions, owner, and file size. </td> * <td> Reads the POSIX file permissions, owner, and file size. </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -33,13 +33,16 @@ import java.security.BasicPermission;
* <p> The following table provides a summary description of what the permission * <p> The following table provides a summary description of what the permission
* allows, and discusses the risks of granting code the permission. * allows, and discusses the risks of granting code the permission.
* *
* <table border=1 cellpadding=5 * <table class="striped">
* summary="Table shows permission target name, what the permission allows, and associated risks"> * <caption style="display:none">Table shows permission target name, what the permission allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td>hard</td> * <td>hard</td>
* <td> Ability to add an existing file to a directory. This is sometimes * <td> Ability to add an existing file to a directory. This is sometimes
@ -55,6 +58,7 @@ import java.security.BasicPermission;
* linking to any file or directory in the file system thus allowing the * linking to any file or directory in the file system thus allowing the
* attacker to access to all files. </td> * attacker to access to all files. </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* @since 1.7 * @since 1.7

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -94,11 +94,15 @@ import java.io.IOException;
* <p> Where dynamic access to file attributes is required, the attributes * <p> Where dynamic access to file attributes is required, the attributes
* supported by this attribute view are as follows: * supported by this attribute view are as follows:
* <blockquote> * <blockquote>
* <table border="1" cellpadding="8" summary="Supported attributes"> * <table class="striped">
* <caption style="display:none">Supported attributes</caption>
* <thead>
* <tr> * <tr>
* <th> Name </th> * <th> Name </th>
* <th> Type </th> * <th> Type </th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> "acl" </td> * <td> "acl" </td>
* <td> {@link List}&lt;{@link AclEntry}&gt; </td> * <td> {@link List}&lt;{@link AclEntry}&gt; </td>
@ -107,6 +111,7 @@ import java.io.IOException;
* <td> "owner" </td> * <td> "owner" </td>
* <td> {@link UserPrincipal} </td> * <td> {@link UserPrincipal} </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -41,11 +41,15 @@ import java.io.IOException;
* <p> Where dynamic access to file attributes is required, the attributes * <p> Where dynamic access to file attributes is required, the attributes
* supported by this attribute view have the following names and types: * supported by this attribute view have the following names and types:
* <blockquote> * <blockquote>
* <table border="1" cellpadding="8" summary="Supported attributes"> * <table class="striped">
* <caption style="display:none">Supported attributes</caption>
* <thead>
* <tr> * <tr>
* <th> Name </th> * <th> Name </th>
* <th> Type </th> * <th> Type </th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> "lastModifiedTime" </td> * <td> "lastModifiedTime" </td>
* <td> {@link FileTime} </td> * <td> {@link FileTime} </td>
@ -82,6 +86,7 @@ import java.io.IOException;
* <td> "fileKey" </td> * <td> "fileKey" </td>
* <td> {@link Object} </td> * <td> {@link Object} </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -41,11 +41,15 @@ import java.io.IOException;
* BasicFileAttributeView}, and in addition, the following attributes are * BasicFileAttributeView}, and in addition, the following attributes are
* supported: * supported:
* <blockquote> * <blockquote>
* <table border="1" cellpadding="8" summary="Supported attributes"> * <table class="striped">
* <caption style="display:none">Supported attributes</caption>
* <thead>
* <tr> * <tr>
* <th> Name </th> * <th> Name </th>
* <th> Type </th> * <th> Type </th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> readonly </td> * <td> readonly </td>
* <td> {@link Boolean} </td> * <td> {@link Boolean} </td>
@ -62,6 +66,7 @@ import java.io.IOException;
* <td> archive </td> * <td> archive </td>
* <td> {@link Boolean} </td> * <td> {@link Boolean} </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -74,11 +74,15 @@ import java.io.IOException;
* BasicFileAttributeView} and {@link FileOwnerAttributeView}, and in addition, * BasicFileAttributeView} and {@link FileOwnerAttributeView}, and in addition,
* the following attributes are supported: * the following attributes are supported:
* <blockquote> * <blockquote>
* <table border="1" cellpadding="8" summary="Supported attributes"> * <table class="striped">
* <caption style="display:none">Supported attributes</caption>
* <thead>
* <tr> * <tr>
* <th> Name </th> * <th> Name </th>
* <th> Type </th> * <th> Type </th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> "permissions" </td> * <td> "permissions" </td>
* <td> {@link Set}&lt;{@link PosixFilePermission}&gt; </td> * <td> {@link Set}&lt;{@link PosixFilePermission}&gt; </td>
@ -87,6 +91,7 @@ import java.io.IOException;
* <td> "group" </td> * <td> "group" </td>
* <td> {@link GroupPrincipal} </td> * <td> {@link GroupPrincipal} </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -919,8 +919,12 @@ public abstract class FileSystemProvider {
* according to all of access modes specified in the {@code modes} parameter * according to all of access modes specified in the {@code modes} parameter
* as follows: * as follows:
* *
* <table border=1 cellpadding=5 summary=""> * <table class="striped">
* <caption style="display:none">Access Modes</caption>
* <thead>
* <tr> <th>Value</th> <th>Description</th> </tr> * <tr> <th>Value</th> <th>Description</th> </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td> {@link AccessMode#READ READ} </td> * <td> {@link AccessMode#READ READ} </td>
* <td> Checks that the file exists and that the Java virtual machine has * <td> Checks that the file exists and that the Java virtual machine has
@ -940,6 +944,7 @@ public abstract class FileSystemProvider {
* virtual machine has permission to search the directory in order to * virtual machine has permission to search the directory in order to
* access file or subdirectories. </td> * access file or subdirectories. </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p> If the {@code modes} parameter is of length zero, then the existence * <p> If the {@code modes} parameter is of length zero, then the existence

View file

@ -263,14 +263,19 @@ public class DrbgParameters {
* Capability effective = ((DrbgParametes.Initiate) s.getParameters()) * Capability effective = ((DrbgParametes.Initiate) s.getParameters())
* .getCapability();</pre> * .getCapability();</pre>
* </blockquote> * </blockquote>
* <table border=1 summary="requested and effective capabilities"> * <table class="plain">
* <caption style="display:none">requested and effective capabilities</caption>
* <thead>
* <tr> * <tr>
* <th>Requested Value</th> * <th>Requested Value</th>
* <th>Possible Effective Values</th> * <th>Possible Effective Values</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr><td>NONE</td><td>NONE, RESEED_ONLY, PR_AND_RESEED</td></tr> * <tr><td>NONE</td><td>NONE, RESEED_ONLY, PR_AND_RESEED</td></tr>
* <tr><td>RESEED_ONLY</td><td>RESEED_ONLY, PR_AND_RESEED</td></tr> * <tr><td>RESEED_ONLY</td><td>RESEED_ONLY, PR_AND_RESEED</td></tr>
* <tr><td>PR_AND_RESEED</td><td>PR_AND_RESEED</td></tr> * <tr><td>PR_AND_RESEED</td><td>PR_AND_RESEED</td></tr>
* </tbody>
* </table> * </table>
* <p> * <p>
* A DRBG implementation supporting prediction resistance must also * A DRBG implementation supporting prediction resistance must also

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -61,17 +61,21 @@ import java.util.function.Function;
* security framework. Services of this type cannot be added, removed, * security framework. Services of this type cannot be added, removed,
* or modified by applications. * or modified by applications.
* The following attributes are automatically placed in each Provider object: * The following attributes are automatically placed in each Provider object:
* <table cellspacing=4> * <table class="plain">
* <caption><b>Attributes Automatically Placed in a Provider Object</b></caption> * <caption><b>Attributes Automatically Placed in a Provider Object</b></caption>
* <thead>
* <tr><th>Name</th><th>Value</th> * <tr><th>Name</th><th>Value</th>
* </thead>
* <tbody>
* <tr><td>{@code Provider.id name}</td> * <tr><td>{@code Provider.id name}</td>
* <td>{@code String.valueOf(provider.getName())}</td> * <td>{@code String.valueOf(provider.getName())}</td>
* <tr><td>{@code Provider.id version}</td> * <tr><td>{@code Provider.id version}</td>
* <td>{@code String.valueOf(provider.getVersionStr())}</td> * <td>{@code String.valueOf(provider.getVersionStr())}</td>
* <tr><td>{@code Provider.id info}</td> * <tr><td>{@code Provider.id info}</td>
<td>{@code String.valueOf(provider.getInfo())}</td> * <td>{@code String.valueOf(provider.getInfo())}</td>
* <tr><td>{@code Provider.id className}</td> * <tr><td>{@code Provider.id className}</td>
* <td>{@code provider.getClass().getName()}</td> * <td>{@code provider.getClass().getName()}</td>
* </tbody>
* </table> * </table>
* *
* <p>Each provider has a name and a version string. A provider normally * <p>Each provider has a name and a version string. A provider normally

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -45,12 +45,16 @@ import java.util.StringTokenizer;
* target names, and for each provides a description of what the permission * target names, and for each provides a description of what the permission
* allows and a discussion of the risks of granting code the permission. * allows and a discussion of the risks of granting code the permission.
* *
* <table border=1 cellpadding=5 summary="target name,what the permission allows, and associated risks"> * <table class="striped">
* <caption style="display:none">target name, what the permission allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* <tbody>
* *
* <tr> * <tr>
* <td>authProvider.{provider name}</td> * <td>authProvider.{provider name}</td>
@ -196,6 +200,7 @@ import java.util.StringTokenizer;
* described under the "removeProvider.{provider name}" permission.</td> * described under the "removeProvider.{provider name}" permission.</td>
* </tr> * </tr>
* *
* </tbody>
* </table> * </table>
* *
* <P> * <P>
@ -204,13 +209,17 @@ import java.util.StringTokenizer;
* {@link IdentityScope}, {@link Signer}. Use of them is discouraged. See the * {@link IdentityScope}, {@link Signer}. Use of them is discouraged. See the
* applicable classes for more information. * applicable classes for more information.
* *
* <table border=1 cellpadding=5 summary="target name,what the permission allows, and associated risks"> * <table class="striped">
* <caption style="display:none">target name, what the permission allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* *
* <tbody>
* <tr> * <tr>
* <td>insertProvider.{provider name}</td> * <td>insertProvider.{provider name}</td>
* <td>Addition of a new provider, with the specified name</td> * <td>Addition of a new provider, with the specified name</td>
@ -308,6 +317,7 @@ import java.util.StringTokenizer;
* data encrypted under that session key.</td> * data encrypted under that session key.</td>
* </tr> * </tr>
* *
* </tbody>
* </table> * </table>
* *
* @implNote * @implNote

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -152,10 +152,14 @@ public interface X509Extension {
* by periods. * by periods.
* *
* <p>For example:<br> * <p>For example:<br>
* <table border=groove summary="Examples of OIDs and extension names"> * <table class="plain">
* <caption style="display:none">Examples of OIDs and extension names</caption>
* <thead>
* <tr> * <tr>
* <th>OID <em>(Object Identifier)</em></th> * <th>OID <em>(Object Identifier)</em></th>
* <th>Extension Name</th></tr> * <th>Extension Name</th></tr>
* </thead>
* <tbody>
* <tr><td>2.5.29.14</td> * <tr><td>2.5.29.14</td>
* <td>SubjectKeyIdentifier</td></tr> * <td>SubjectKeyIdentifier</td></tr>
* <tr><td>2.5.29.15</td> * <tr><td>2.5.29.15</td>
@ -176,6 +180,7 @@ public interface X509Extension {
* <td>AuthorityKeyIdentifier</td></tr> * <td>AuthorityKeyIdentifier</td></tr>
* <tr><td>2.5.29.36</td> * <tr><td>2.5.29.36</td>
* <td>PolicyConstraints</td></tr> * <td>PolicyConstraints</td></tr>
* </tbody>
* </table> * </table>
* *
* @param oid the Object Identifier value for the extension. * @param oid the Object Identifier value for the extension.

View file

@ -172,19 +172,22 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* are not localized. * are not localized.
* *
* <blockquote> * <blockquote>
* <table border=0 cellspacing=3 cellpadding=0 summary="Chart showing symbol, * <table class="striped">
* location, localized, and meaning."> * <caption style="display:none">Chart showing symbol, location, localized, and meaning.</caption>
* <tr style="background-color: rgb(204, 204, 255);"> * <thead>
* <tr>
* <th style="text-align:left">Symbol * <th style="text-align:left">Symbol
* <th style="text-align:left">Location * <th style="text-align:left">Location
* <th style="text-align:left">Localized? * <th style="text-align:left">Localized?
* <th style="text-align:left">Meaning * <th style="text-align:left">Meaning
* </thead>
* <tbody>
* <tr style="vertical-align:top"> * <tr style="vertical-align:top">
* <td><code>0</code> * <td><code>0</code>
* <td>Number * <td>Number
* <td>Yes * <td>Yes
* <td>Digit * <td>Digit
* <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <tr style="vertical-align: top">
* <td><code>#</code> * <td><code>#</code>
* <td>Number * <td>Number
* <td>Yes * <td>Yes
@ -194,7 +197,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* <td>Number * <td>Number
* <td>Yes * <td>Yes
* <td>Decimal separator or monetary decimal separator * <td>Decimal separator or monetary decimal separator
* <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <tr style="vertical-align: top">
* <td><code>-</code> * <td><code>-</code>
* <td>Number * <td>Number
* <td>Yes * <td>Yes
@ -204,7 +207,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* <td>Number * <td>Number
* <td>Yes * <td>Yes
* <td>Grouping separator * <td>Grouping separator
* <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <tr style="vertical-align: top">
* <td><code>E</code> * <td><code>E</code>
* <td>Number * <td>Number
* <td>Yes * <td>Yes
@ -215,7 +218,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* <td>Subpattern boundary * <td>Subpattern boundary
* <td>Yes * <td>Yes
* <td>Separates positive and negative subpatterns * <td>Separates positive and negative subpatterns
* <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <tr style="vertical-align: top">
* <td><code>%</code> * <td><code>%</code>
* <td>Prefix or suffix * <td>Prefix or suffix
* <td>Yes * <td>Yes
@ -225,7 +228,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* <td>Prefix or suffix * <td>Prefix or suffix
* <td>Yes * <td>Yes
* <td>Multiply by 1000 and show as per mille value * <td>Multiply by 1000 and show as per mille value
* <tr style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <tr style="vertical-align: top">
* <td><code>&#164;</code> (<code>&#92;u00A4</code>) * <td><code>&#164;</code> (<code>&#92;u00A4</code>)
* <td>Prefix or suffix * <td>Prefix or suffix
* <td>No * <td>No
@ -241,6 +244,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* for example, <code>"'#'#"</code> formats 123 to * for example, <code>"'#'#"</code> formats 123 to
* <code>"#123"</code>. To create a single quote * <code>"#123"</code>. To create a single quote
* itself, use two in a row: <code>"# o''clock"</code>. * itself, use two in a row: <code>"# o''clock"</code>.
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -146,11 +146,15 @@ import java.util.Locale;
* shown in the table are illegal. A <i>SubformatPattern</i> must * shown in the table are illegal. A <i>SubformatPattern</i> must
* be a valid pattern string for the {@code Format} subclass used. * be a valid pattern string for the {@code Format} subclass used.
* *
* <table border=1 summary="Shows how FormatType and FormatStyle values map to Format instances"> * <table class="plain">
* <caption style="display:none">Shows how FormatType and FormatStyle values map to Format instances</caption>
* <thead>
* <tr> * <tr>
* <th id="ft" class="TableHeadingColor">FormatType * <th id="ft" class="TableHeadingColor">FormatType
* <th id="fs" class="TableHeadingColor">FormatStyle * <th id="fs" class="TableHeadingColor">FormatStyle
* <th id="sc" class="TableHeadingColor">Subformat Created * <th id="sc" class="TableHeadingColor">Subformat Created
* </thead>
* <tbody>
* <tr> * <tr>
* <td headers="ft"><i>(none)</i> * <td headers="ft"><i>(none)</i>
* <td headers="fs"><i>(none)</i> * <td headers="fs"><i>(none)</i>
@ -213,6 +217,7 @@ import java.util.Locale;
* <td headers="ft"><code>choice</code> * <td headers="ft"><code>choice</code>
* <td headers="fs"><i>SubformatPattern</i> * <td headers="fs"><i>SubformatPattern</i>
* <td headers="sc">{@code new} {@link ChoiceFormat#ChoiceFormat(String) ChoiceFormat}{@code (subformatPattern)} * <td headers="sc">{@code new} {@link ChoiceFormat#ChoiceFormat(String) ChoiceFormat}{@code (subformatPattern)}
* </tbody>
* </table> * </table>
* *
* <h4>Usage Information</h4> * <h4>Usage Information</h4>
@ -766,11 +771,15 @@ public class MessageFormat extends Format {
* argument is <i>unavailable</i> if <code>arguments</code> is * argument is <i>unavailable</i> if <code>arguments</code> is
* <code>null</code> or has fewer than argumentIndex+1 elements. * <code>null</code> or has fewer than argumentIndex+1 elements.
* *
* <table border=1 summary="Examples of subformat,argument,and formatted text"> * <table class="plain">
* <caption style="display:none">Examples of subformat,argument,and formatted text</caption>
* <thead>
* <tr> * <tr>
* <th>Subformat * <th>Subformat
* <th>Argument * <th>Argument
* <th>Formatted Text * <th>Formatted Text
* </thead>
* <tbody>
* <tr> * <tr>
* <td><i>any</i> * <td><i>any</i>
* <td><i>unavailable</i> * <td><i>unavailable</i>
@ -805,6 +814,7 @@ public class MessageFormat extends Format {
* <td><code>null</code> * <td><code>null</code>
* <td><i>any</i> * <td><i>any</i>
* <td><code>argument.toString()</code> * <td><code>argument.toString()</code>
* </tbody>
* </table> * </table>
* <p> * <p>
* If <code>pos</code> is non-null, and refers to * If <code>pos</code> is non-null, and refers to

View file

@ -92,18 +92,22 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to * <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to
* <code>'z'</code> are reserved): * <code>'z'</code> are reserved):
* <blockquote> * <blockquote>
* <table border=0 cellspacing=3 cellpadding=0 summary="Chart shows pattern letters, date/time component, presentation, and examples."> * <table class="striped">
* <tr style="background-color: rgb(204, 204, 255);"> * <caption style="display:none">Chart shows pattern letters, date/time component, presentation, and examples.</caption>
* <thead>
* <tr>
* <th style="text-align:left">Letter * <th style="text-align:left">Letter
* <th style="text-align:left">Date or Time Component * <th style="text-align:left">Date or Time Component
* <th style="text-align:left">Presentation * <th style="text-align:left">Presentation
* <th style="text-align:left">Examples * <th style="text-align:left">Examples
* </thead>
* <tbody>
* <tr> * <tr>
* <td><code>G</code> * <td><code>G</code>
* <td>Era designator * <td>Era designator
* <td><a href="#text">Text</a> * <td><a href="#text">Text</a>
* <td><code>AD</code> * <td><code>AD</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>y</code> * <td><code>y</code>
* <td>Year * <td>Year
* <td><a href="#year">Year</a> * <td><a href="#year">Year</a>
@ -113,7 +117,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Week year * <td>Week year
* <td><a href="#year">Year</a> * <td><a href="#year">Year</a>
* <td><code>2009</code>; <code>09</code> * <td><code>2009</code>; <code>09</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>M</code> * <td><code>M</code>
* <td>Month in year (context sensitive) * <td>Month in year (context sensitive)
* <td><a href="#month">Month</a> * <td><a href="#month">Month</a>
@ -123,7 +127,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Month in year (standalone form) * <td>Month in year (standalone form)
* <td><a href="#month">Month</a> * <td><a href="#month">Month</a>
* <td><code>July</code>; <code>Jul</code>; <code>07</code> * <td><code>July</code>; <code>Jul</code>; <code>07</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>w</code> * <td><code>w</code>
* <td>Week in year * <td>Week in year
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -133,7 +137,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Week in month * <td>Week in month
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
* <td><code>2</code> * <td><code>2</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>D</code> * <td><code>D</code>
* <td>Day in year * <td>Day in year
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -143,7 +147,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Day in month * <td>Day in month
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
* <td><code>10</code> * <td><code>10</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>F</code> * <td><code>F</code>
* <td>Day of week in month * <td>Day of week in month
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -153,7 +157,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Day name in week * <td>Day name in week
* <td><a href="#text">Text</a> * <td><a href="#text">Text</a>
* <td><code>Tuesday</code>; <code>Tue</code> * <td><code>Tuesday</code>; <code>Tue</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>u</code> * <td><code>u</code>
* <td>Day number of week (1 = Monday, ..., 7 = Sunday) * <td>Day number of week (1 = Monday, ..., 7 = Sunday)
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -163,7 +167,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Am/pm marker * <td>Am/pm marker
* <td><a href="#text">Text</a> * <td><a href="#text">Text</a>
* <td><code>PM</code> * <td><code>PM</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>H</code> * <td><code>H</code>
* <td>Hour in day (0-23) * <td>Hour in day (0-23)
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -173,7 +177,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Hour in day (1-24) * <td>Hour in day (1-24)
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
* <td><code>24</code> * <td><code>24</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>K</code> * <td><code>K</code>
* <td>Hour in am/pm (0-11) * <td>Hour in am/pm (0-11)
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -183,7 +187,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Hour in am/pm (1-12) * <td>Hour in am/pm (1-12)
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
* <td><code>12</code> * <td><code>12</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>m</code> * <td><code>m</code>
* <td>Minute in hour * <td>Minute in hour
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -193,7 +197,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Second in minute * <td>Second in minute
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
* <td><code>55</code> * <td><code>55</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>S</code> * <td><code>S</code>
* <td>Millisecond * <td>Millisecond
* <td><a href="#number">Number</a> * <td><a href="#number">Number</a>
@ -203,7 +207,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Time zone * <td>Time zone
* <td><a href="#timezone">General time zone</a> * <td><a href="#timezone">General time zone</a>
* <td><code>Pacific Standard Time</code>; <code>PST</code>; <code>GMT-08:00</code> * <td><code>Pacific Standard Time</code>; <code>PST</code>; <code>GMT-08:00</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>Z</code> * <td><code>Z</code>
* <td>Time zone * <td>Time zone
* <td><a href="#rfc822timezone">RFC 822 time zone</a> * <td><a href="#rfc822timezone">RFC 822 time zone</a>
@ -213,6 +217,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* <td>Time zone * <td>Time zone
* <td><a href="#iso8601timezone">ISO 8601 time zone</a> * <td><a href="#iso8601timezone">ISO 8601 time zone</a>
* <td><code>-08</code>; <code>-0800</code>; <code>-08:00</code> * <td><code>-08</code>; <code>-0800</code>; <code>-08:00</code>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* Pattern letters are usually repeated, as their number determines the * Pattern letters are usually repeated, as their number determines the
@ -370,43 +375,48 @@ import sun.util.locale.provider.LocaleProviderAdapter;
* the U.S. locale. The given date and time are 2001-07-04 12:08:56 local time * the U.S. locale. The given date and time are 2001-07-04 12:08:56 local time
* in the U.S. Pacific Time time zone. * in the U.S. Pacific Time time zone.
* <blockquote> * <blockquote>
* <table border=0 cellspacing=3 cellpadding=0 summary="Examples of date and time patterns interpreted in the U.S. locale"> * <table class="striped">
* <tr style="background-color: rgb(204, 204, 255);"> * <caption style="display:none">Examples of date and time patterns interpreted in the U.S. locale</caption>
* <thead>
* <tr>
* <th style="text-align:left">Date and Time Pattern * <th style="text-align:left">Date and Time Pattern
* <th style="text-align:left">Result * <th style="text-align:left">Result
* </thead>
* <tbody>
* <tr> * <tr>
* <td><code>"yyyy.MM.dd G 'at' HH:mm:ss z"</code> * <td><code>"yyyy.MM.dd G 'at' HH:mm:ss z"</code>
* <td><code>2001.07.04 AD at 12:08:56 PDT</code> * <td><code>2001.07.04 AD at 12:08:56 PDT</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>"EEE, MMM d, ''yy"</code> * <td><code>"EEE, MMM d, ''yy"</code>
* <td><code>Wed, Jul 4, '01</code> * <td><code>Wed, Jul 4, '01</code>
* <tr> * <tr>
* <td><code>"h:mm a"</code> * <td><code>"h:mm a"</code>
* <td><code>12:08 PM</code> * <td><code>12:08 PM</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>"hh 'o''clock' a, zzzz"</code> * <td><code>"hh 'o''clock' a, zzzz"</code>
* <td><code>12 o'clock PM, Pacific Daylight Time</code> * <td><code>12 o'clock PM, Pacific Daylight Time</code>
* <tr> * <tr>
* <td><code>"K:mm a, z"</code> * <td><code>"K:mm a, z"</code>
* <td><code>0:08 PM, PDT</code> * <td><code>0:08 PM, PDT</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>"yyyyy.MMMMM.dd GGG hh:mm aaa"</code> * <td><code>"yyyyy.MMMMM.dd GGG hh:mm aaa"</code>
* <td><code>02001.July.04 AD 12:08 PM</code> * <td><code>02001.July.04 AD 12:08 PM</code>
* <tr> * <tr>
* <td><code>"EEE, d MMM yyyy HH:mm:ss Z"</code> * <td><code>"EEE, d MMM yyyy HH:mm:ss Z"</code>
* <td><code>Wed, 4 Jul 2001 12:08:56 -0700</code> * <td><code>Wed, 4 Jul 2001 12:08:56 -0700</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>"yyMMddHHmmssZ"</code> * <td><code>"yyMMddHHmmssZ"</code>
* <td><code>010704120856-0700</code> * <td><code>010704120856-0700</code>
* <tr> * <tr>
* <td><code>"yyyy-MM-dd'T'HH:mm:ss.SSSZ"</code> * <td><code>"yyyy-MM-dd'T'HH:mm:ss.SSSZ"</code>
* <td><code>2001-07-04T12:08:56.235-0700</code> * <td><code>2001-07-04T12:08:56.235-0700</code>
* <tr style="background-color: rgb(238, 238, 255);"> * <tr>
* <td><code>"yyyy-MM-dd'T'HH:mm:ss.SSSXXX"</code> * <td><code>"yyyy-MM-dd'T'HH:mm:ss.SSSXXX"</code>
* <td><code>2001-07-04T12:08:56.235-07:00</code> * <td><code>2001-07-04T12:08:56.235-07:00</code>
* <tr> * <tr>
* <td><code>"YYYY-'W'ww-u"</code> * <td><code>"YYYY-'W'ww-u"</code>
* <td><code>2001-W27-3</code> * <td><code>2001-W27-3</code>
* </tbody>
* </table> * </table>
* </blockquote> * </blockquote>
* *

View file

@ -103,17 +103,18 @@ import sun.util.logging.PlatformLogger;
* *
* <p> * <p>
* CLDR and LDML identify variants: * CLDR and LDML identify variants:
* <table cellpadding="2" summary="Variants of Hijrah Calendars"> * <table class="striped">
* <caption style="display:none">Variants of Hijrah Calendars</caption>
* <thead> * <thead>
* <tr class="tableSubHeadingColor"> * <tr>
* <th class="colFirst" style="text-align:left" >Chronology ID</th> * <th style="text-align:left" >Chronology ID</th>
* <th class="colFirst" style="text-align:left" >Calendar Type</th> * <th style="text-align:left" >Calendar Type</th>
* <th class="colFirst" style="text-align:left" >Locale extension, see {@link java.util.Locale}</th> * <th style="text-align:left" >Locale extension, see {@link java.util.Locale}</th>
* <th class="colLast" style="text-align:left" >Description</th> * <th style="text-align:left" >Description</th>
* </tr> * </tr>
* </thead> * </thead>
* <tbody> * <tbody>
* <tr class="altColor"> * <tr>
* <td>Hijrah-umalqura</td> * <td>Hijrah-umalqura</td>
* <td>islamic-umalqura</td> * <td>islamic-umalqura</td>
* <td>ca-islamic-umalqura</td> * <td>ca-islamic-umalqura</td>
@ -147,36 +148,37 @@ import sun.util.logging.PlatformLogger;
* <p> * <p>
* The Hijrah property resource is a set of properties that describe the calendar. * The Hijrah property resource is a set of properties that describe the calendar.
* The syntax is defined by {@code java.util.Properties#load(Reader)}. * The syntax is defined by {@code java.util.Properties#load(Reader)}.
* <table cellpadding="2" summary="Configuration of Hijrah Calendar"> * <table class="striped">
* <caption style="display:none">Configuration of Hijrah Calendar</caption>
* <thead> * <thead>
* <tr class="tableSubHeadingColor"> * <tr>
* <th class="colFirst" style="text-align:left" > Property Name</th> * <th style="text-align:left" > Property Name</th>
* <th class="colFirst" style="text-align:left" > Property value</th> * <th style="text-align:left" > Property value</th>
* <th class="colLast" style="text-align:left" > Description </th> * <th style="text-align:left" > Description </th>
* </tr> * </tr>
* </thead> * </thead>
* <tbody> * <tbody>
* <tr class="altColor"> * <tr>
* <td>id</td> * <td>id</td>
* <td>Chronology Id, for example, "Hijrah-umalqura"</td> * <td>Chronology Id, for example, "Hijrah-umalqura"</td>
* <td>The Id of the calendar in common usage</td> * <td>The Id of the calendar in common usage</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td>type</td> * <td>type</td>
* <td>Calendar type, for example, "islamic-umalqura"</td> * <td>Calendar type, for example, "islamic-umalqura"</td>
* <td>LDML defines the calendar types</td> * <td>LDML defines the calendar types</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>version</td> * <td>version</td>
* <td>Version, for example: "1.8.0_1"</td> * <td>Version, for example: "1.8.0_1"</td>
* <td>The version of the Hijrah variant data</td> * <td>The version of the Hijrah variant data</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td>iso-start</td> * <td>iso-start</td>
* <td>ISO start date, formatted as {@code yyyy-MM-dd}, for example: "1900-04-30"</td> * <td>ISO start date, formatted as {@code yyyy-MM-dd}, for example: "1900-04-30"</td>
* <td>The ISO date of the first day of the minimum Hijrah year.</td> * <td>The ISO date of the first day of the minimum Hijrah year.</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>yyyy - a numeric 4 digit year, for example "1434"</td> * <td>yyyy - a numeric 4 digit year, for example "1434"</td>
* <td>The value is a sequence of 12 month lengths, * <td>The value is a sequence of 12 month lengths,
* for example: "29 30 29 30 29 30 30 30 29 30 29 29"</td> * for example: "29 30 29 30 29 30 30 30 29 30 29 29"</td>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -70,25 +70,26 @@ import java.time.DateTimeException;
* A definition has therefore been created with two eras - 'Current era' (CE) for * A definition has therefore been created with two eras - 'Current era' (CE) for
* years on or after 0001-01-01 (ISO), and 'Before current era' (BCE) for years before that. * years on or after 0001-01-01 (ISO), and 'Before current era' (BCE) for years before that.
* *
* <table summary="ISO years and eras" cellpadding="2" cellspacing="3" border="0" > * <table class="striped">
* <caption style="display:none">ISO years and eras</caption>
* <thead> * <thead>
* <tr class="tableSubHeadingColor"> * <tr>
* <th class="colFirst" style="text-align:left">year-of-era</th> * <th style="text-align:left">year-of-era</th>
* <th class="colFirst" style="text-align:left">era</th> * <th style="text-align:left">era</th>
* <th class="colLast" style="text-align:left">proleptic-year</th> * <th style="text-align:left">proleptic-year</th>
* </tr> * </tr>
* </thead> * </thead>
* <tbody> * <tbody>
* <tr class="rowColor"> * <tr>
* <td>2</td><td>CE</td><td>2</td> * <td>2</td><td>CE</td><td>2</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>1</td><td>CE</td><td>1</td> * <td>1</td><td>CE</td><td>1</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td>1</td><td>BCE</td><td>0</td> * <td>1</td><td>BCE</td><td>0</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>2</td><td>BCE</td><td>-1</td> * <td>2</td><td>BCE</td><td>-1</td>
* </tr> * </tr>
* </tbody> * </tbody>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -71,26 +71,27 @@ import java.time.DateTimeException;
* All previous years, zero or earlier in the proleptic count or one and greater * All previous years, zero or earlier in the proleptic count or one and greater
* in the year-of-era count, are part of the 'Before Republic of China' era. * in the year-of-era count, are part of the 'Before Republic of China' era.
* *
* <table summary="Minguo years and eras" cellpadding="2" cellspacing="3" border="0" > * <table class="striped">
* <caption style="display:none">Minguo years and eras</caption>
* <thead> * <thead>
* <tr class="tableSubHeadingColor"> * <tr>
* <th class="colFirst" style="text-align:left">year-of-era</th> * <th style="text-align:left">year-of-era</th>
* <th class="colFirst" style="text-align:left">era</th> * <th style="text-align:left">era</th>
* <th class="colFirst" style="text-align:left">proleptic-year</th> * <th style="text-align:left">proleptic-year</th>
* <th class="colLast" style="text-align:left">ISO proleptic-year</th> * <th style="text-align:left">ISO proleptic-year</th>
* </tr> * </tr>
* </thead> * </thead>
* <tbody> * <tbody>
* <tr class="rowColor"> * <tr>
* <td>2</td><td>ROC</td><td>2</td><td>1913</td> * <td>2</td><td>ROC</td><td>2</td><td>1913</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>1</td><td>ROC</td><td>1</td><td>1912</td> * <td>1</td><td>ROC</td><td>1</td><td>1912</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td>1</td><td>BEFORE_ROC</td><td>0</td><td>1911</td> * <td>1</td><td>BEFORE_ROC</td><td>0</td><td>1911</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>2</td><td>BEFORE_ROC</td><td>-1</td><td>1910</td> * <td>2</td><td>BEFORE_ROC</td><td>-1</td><td>1910</td>
* </tr> * </tr>
* </tbody> * </tbody>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -71,26 +71,27 @@ import java.time.DateTimeException;
* All previous years, zero or earlier in the proleptic count or one and greater * All previous years, zero or earlier in the proleptic count or one and greater
* in the year-of-era count, are part of the 'Before Buddhist' era. * in the year-of-era count, are part of the 'Before Buddhist' era.
* *
* <table summary="Buddhist years and eras" cellpadding="2" cellspacing="3" border="0" > * <table class="striped">
* <caption style="display:none">Buddhist years and eras</caption>
* <thead> * <thead>
* <tr class="tableSubHeadingColor"> * <tr>
* <th class="colFirst" style="text-align:left">year-of-era</th> * <th style="text-align:left">year-of-era</th>
* <th class="colFirst" style="text-align:left">era</th> * <th style="text-align:left">era</th>
* <th class="colFirst" style="text-align:left">proleptic-year</th> * <th style="text-align:left">proleptic-year</th>
* <th class="colLast" style="text-align:left">ISO proleptic-year</th> * <th style="text-align:left">ISO proleptic-year</th>
* </tr> * </tr>
* </thead> * </thead>
* <tbody> * <tbody>
* <tr class="rowColor"> * <tr>
* <td>2</td><td>BE</td><td>2</td><td>-542</td> * <td>2</td><td>BE</td><td>2</td><td>-542</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>1</td><td>BE</td><td>1</td><td>-543</td> * <td>1</td><td>BE</td><td>1</td><td>-543</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td>1</td><td>BEFORE_BE</td><td>0</td><td>-544</td> * <td>1</td><td>BEFORE_BE</td><td>0</td><td>-544</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td>2</td><td>BEFORE_BE</td><td>-1</td><td>-545</td> * <td>2</td><td>BEFORE_BE</td><td>-1</td><td>-545</td>
* </tr> * </tr>
* </tbody> * </tbody>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -150,105 +150,106 @@ import java.util.Set;
* implementation of {@code java.text.Format}. * implementation of {@code java.text.Format}.
* *
* <h3 id="predefined">Predefined Formatters</h3> * <h3 id="predefined">Predefined Formatters</h3>
* <table summary="Predefined Formatters" cellpadding="2" cellspacing="3" border="0" > * <table class="striped">
* <caption>Predefined Formatters</caption>
* <thead> * <thead>
* <tr class="tableSubHeadingColor"> * <tr>
* <th class="colFirst" style="text-align:left">Formatter</th> * <th style="text-align:left">Formatter</th>
* <th class="colFirst" style="text-align:left">Description</th> * <th style="text-align:left">Description</th>
* <th class="colLast" style="text-align:left">Example</th> * <th style="text-align:left">Example</th>
* </tr> * </tr>
* </thead> * </thead>
* <tbody> * <tbody>
* <tr class="rowColor"> * <tr>
* <td>{@link #ofLocalizedDate ofLocalizedDate(dateStyle)} </td> * <td>{@link #ofLocalizedDate ofLocalizedDate(dateStyle)} </td>
* <td> Formatter with date style from the locale </td> * <td> Formatter with date style from the locale </td>
* <td> '2011-12-03'</td> * <td> '2011-12-03'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ofLocalizedTime ofLocalizedTime(timeStyle)} </td> * <td> {@link #ofLocalizedTime ofLocalizedTime(timeStyle)} </td>
* <td> Formatter with time style from the locale </td> * <td> Formatter with time style from the locale </td>
* <td> '10:15:30'</td> * <td> '10:15:30'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #ofLocalizedDateTime ofLocalizedDateTime(dateTimeStyle)} </td> * <td> {@link #ofLocalizedDateTime ofLocalizedDateTime(dateTimeStyle)} </td>
* <td> Formatter with a style for date and time from the locale</td> * <td> Formatter with a style for date and time from the locale</td>
* <td> '3 Jun 2008 11:05:30'</td> * <td> '3 Jun 2008 11:05:30'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ofLocalizedDateTime ofLocalizedDateTime(dateStyle,timeStyle)} * <td> {@link #ofLocalizedDateTime ofLocalizedDateTime(dateStyle,timeStyle)}
* </td> * </td>
* <td> Formatter with date and time styles from the locale </td> * <td> Formatter with date and time styles from the locale </td>
* <td> '3 Jun 2008 11:05'</td> * <td> '3 Jun 2008 11:05'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #BASIC_ISO_DATE}</td> * <td> {@link #BASIC_ISO_DATE}</td>
* <td>Basic ISO date </td> <td>'20111203'</td> * <td>Basic ISO date </td> <td>'20111203'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ISO_LOCAL_DATE}</td> * <td> {@link #ISO_LOCAL_DATE}</td>
* <td> ISO Local Date </td> * <td> ISO Local Date </td>
* <td>'2011-12-03'</td> * <td>'2011-12-03'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #ISO_OFFSET_DATE}</td> * <td> {@link #ISO_OFFSET_DATE}</td>
* <td> ISO Date with offset </td> * <td> ISO Date with offset </td>
* <td>'2011-12-03+01:00'</td> * <td>'2011-12-03+01:00'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ISO_DATE}</td> * <td> {@link #ISO_DATE}</td>
* <td> ISO Date with or without offset </td> * <td> ISO Date with or without offset </td>
* <td> '2011-12-03+01:00'; '2011-12-03'</td> * <td> '2011-12-03+01:00'; '2011-12-03'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #ISO_LOCAL_TIME}</td> * <td> {@link #ISO_LOCAL_TIME}</td>
* <td> Time without offset </td> * <td> Time without offset </td>
* <td>'10:15:30'</td> * <td>'10:15:30'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ISO_OFFSET_TIME}</td> * <td> {@link #ISO_OFFSET_TIME}</td>
* <td> Time with offset </td> * <td> Time with offset </td>
* <td>'10:15:30+01:00'</td> * <td>'10:15:30+01:00'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #ISO_TIME}</td> * <td> {@link #ISO_TIME}</td>
* <td> Time with or without offset </td> * <td> Time with or without offset </td>
* <td>'10:15:30+01:00'; '10:15:30'</td> * <td>'10:15:30+01:00'; '10:15:30'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ISO_LOCAL_DATE_TIME}</td> * <td> {@link #ISO_LOCAL_DATE_TIME}</td>
* <td> ISO Local Date and Time </td> * <td> ISO Local Date and Time </td>
* <td>'2011-12-03T10:15:30'</td> * <td>'2011-12-03T10:15:30'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #ISO_OFFSET_DATE_TIME}</td> * <td> {@link #ISO_OFFSET_DATE_TIME}</td>
* <td> Date Time with Offset * <td> Date Time with Offset
* </td><td>2011-12-03T10:15:30+01:00'</td> * </td><td>2011-12-03T10:15:30+01:00'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ISO_ZONED_DATE_TIME}</td> * <td> {@link #ISO_ZONED_DATE_TIME}</td>
* <td> Zoned Date Time </td> * <td> Zoned Date Time </td>
* <td>'2011-12-03T10:15:30+01:00[Europe/Paris]'</td> * <td>'2011-12-03T10:15:30+01:00[Europe/Paris]'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #ISO_DATE_TIME}</td> * <td> {@link #ISO_DATE_TIME}</td>
* <td> Date and time with ZoneId </td> * <td> Date and time with ZoneId </td>
* <td>'2011-12-03T10:15:30+01:00[Europe/Paris]'</td> * <td>'2011-12-03T10:15:30+01:00[Europe/Paris]'</td>
* </tr> * </tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ISO_ORDINAL_DATE}</td> * <td> {@link #ISO_ORDINAL_DATE}</td>
* <td> Year and day of year </td> * <td> Year and day of year </td>
* <td>'2012-337'</td> * <td>'2012-337'</td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #ISO_WEEK_DATE}</td> * <td> {@link #ISO_WEEK_DATE}</td>
* <td> Year and Week </td> * <td> Year and Week </td>
* <td>2012-W48-6'</td></tr> * <td>2012-W48-6'</td></tr>
* <tr class="altColor"> * <tr>
* <td> {@link #ISO_INSTANT}</td> * <td> {@link #ISO_INSTANT}</td>
* <td> Date and Time of an Instant </td> * <td> Date and Time of an Instant </td>
* <td>'2011-12-03T10:15:30Z' </td> * <td>'2011-12-03T10:15:30Z' </td>
* </tr> * </tr>
* <tr class="rowColor"> * <tr>
* <td> {@link #RFC_1123_DATE_TIME}</td> * <td> {@link #RFC_1123_DATE_TIME}</td>
* <td> RFC 1123 / RFC 822 </td> * <td> RFC 1123 / RFC 822 </td>
* <td>'Tue, 3 Jun 2008 11:05:30 GMT'</td> * <td>'Tue, 3 Jun 2008 11:05:30 GMT'</td>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -136,15 +136,19 @@ import sun.util.locale.provider.LocaleResources;
* <p> * <p>
* For example: * For example:
* *
* <table cellpadding="0" cellspacing="3" border="0" style="text-align: left; width: 50%;"> * <table class=striped style="text-align: left; width: 50%;">
* <caption>Examples of Week based Years</caption> * <caption>Examples of Week based Years</caption>
* <thead>
* <tr><th>Date</th><th>Day-of-week</th><th>Field values</th></tr> * <tr><th>Date</th><th>Day-of-week</th><th>Field values</th></tr>
* </thead>
* <tbody>
* <tr><th>2008-12-28</th><td>Sunday</td><td>Week 52 of week-based-year 2008</td></tr> * <tr><th>2008-12-28</th><td>Sunday</td><td>Week 52 of week-based-year 2008</td></tr>
* <tr><th>2008-12-29</th><td>Monday</td><td>Week 1 of week-based-year 2009</td></tr> * <tr><th>2008-12-29</th><td>Monday</td><td>Week 1 of week-based-year 2009</td></tr>
* <tr><th>2008-12-31</th><td>Wednesday</td><td>Week 1 of week-based-year 2009</td></tr> * <tr><th>2008-12-31</th><td>Wednesday</td><td>Week 1 of week-based-year 2009</td></tr>
* <tr><th>2009-01-01</th><td>Thursday</td><td>Week 1 of week-based-year 2009</td></tr> * <tr><th>2009-01-01</th><td>Thursday</td><td>Week 1 of week-based-year 2009</td></tr>
* <tr><th>2009-01-04</th><td>Sunday</td><td>Week 1 of week-based-year 2009</td></tr> * <tr><th>2009-01-04</th><td>Sunday</td><td>Week 1 of week-based-year 2009</td></tr>
* <tr><th>2009-01-05</th><td>Monday</td><td>Week 2 of week-based-year 2009</td></tr> * <tr><th>2009-01-05</th><td>Monday</td><td>Week 2 of week-based-year 2009</td></tr>
* </tbody>
* </table> * </table>
* *
* @implSpec * @implSpec

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -127,10 +127,13 @@ import sun.util.locale.provider.LocaleResources;
* The earliest period is referred to as week 0 if it has less than the minimal number of days * The earliest period is referred to as week 0 if it has less than the minimal number of days
* and week 1 if it has at least the minimal number of days. * and week 1 if it has at least the minimal number of days.
* *
* <table cellpadding="0" cellspacing="3" border="0" style="text-align: left; width: 50%;"> * <table class=striped style="text-align: left">
* <caption>Examples of WeekFields</caption> * <caption>Examples of WeekFields</caption>
* <thead>
* <tr><th>Date</th><td>Day-of-week</td> * <tr><th>Date</th><td>Day-of-week</td>
* <td>First day: Monday<br>Minimal days: 4</td><td>First day: Monday<br>Minimal days: 5</td></tr> * <td>First day: Monday<br>Minimal days: 4</td><td>First day: Monday<br>Minimal days: 5</td></tr>
* </thead>
* <tbody>
* <tr><th>2008-12-31</th><td>Wednesday</td> * <tr><th>2008-12-31</th><td>Wednesday</td>
* <td>Week 5 of December 2008</td><td>Week 5 of December 2008</td></tr> * <td>Week 5 of December 2008</td><td>Week 5 of December 2008</td></tr>
* <tr><th>2009-01-01</th><td>Thursday</td> * <tr><th>2009-01-01</th><td>Thursday</td>
@ -139,6 +142,7 @@ import sun.util.locale.provider.LocaleResources;
* <td>Week 1 of January 2009</td><td>Week 0 of January 2009</td></tr> * <td>Week 1 of January 2009</td><td>Week 0 of January 2009</td></tr>
* <tr><th>2009-01-05</th><td>Monday</td> * <tr><th>2009-01-05</th><td>Monday</td>
* <td>Week 2 of January 2009</td><td>Week 1 of January 2009</td></tr> * <td>Week 2 of January 2009</td><td>Week 1 of January 2009</td></tr>
* </tbody>
* </table> * </table>
* *
* <h3>Week of Year</h3> * <h3>Week of Year</h3>
@ -157,10 +161,13 @@ import sun.util.locale.provider.LocaleResources;
* The first and last weeks of a year may contain days from the * The first and last weeks of a year may contain days from the
* previous calendar year or next calendar year respectively. * previous calendar year or next calendar year respectively.
* *
* <table cellpadding="0" cellspacing="3" border="0" style="text-align: left; width: 50%;"> * <table class=striped style="text-align: left;">
* <caption>Examples of WeekFields for week-based-year</caption> * <caption>Examples of WeekFields for week-based-year</caption>
* <thead>
* <tr><th>Date</th><td>Day-of-week</td> * <tr><th>Date</th><td>Day-of-week</td>
* <td>First day: Monday<br>Minimal days: 4</td><td>First day: Monday<br>Minimal days: 5</td></tr> * <td>First day: Monday<br>Minimal days: 4</td><td>First day: Monday<br>Minimal days: 5</td></tr>
* </thead>
* <tbody>
* <tr><th>2008-12-31</th><td>Wednesday</td> * <tr><th>2008-12-31</th><td>Wednesday</td>
* <td>Week 1 of 2009</td><td>Week 53 of 2008</td></tr> * <td>Week 1 of 2009</td><td>Week 53 of 2008</td></tr>
* <tr><th>2009-01-01</th><td>Thursday</td> * <tr><th>2009-01-01</th><td>Thursday</td>
@ -169,6 +176,7 @@ import sun.util.locale.provider.LocaleResources;
* <td>Week 1 of 2009</td><td>Week 53 of 2008</td></tr> * <td>Week 1 of 2009</td><td>Week 53 of 2008</td></tr>
* <tr><th>2009-01-05</th><td>Monday</td> * <tr><th>2009-01-05</th><td>Monday</td>
* <td>Week 2 of 2009</td><td>Week 1 of 2009</td></tr> * <td>Week 2 of 2009</td><td>Week 1 of 2009</td></tr>
* </tbody>
* </table> * </table>
* *
* @implSpec * @implSpec

View file

@ -56,7 +56,7 @@ package java.util;
* <p>The twelve methods described above are summarized in the * <p>The twelve methods described above are summarized in the
* following table: * following table:
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Summary of Deque methods</caption> * <caption>Summary of Deque methods</caption>
* <tr> * <tr>
* <td></td> * <td></td>
@ -99,7 +99,7 @@ package java.util;
* inherited from the {@code Queue} interface are precisely equivalent to * inherited from the {@code Queue} interface are precisely equivalent to
* {@code Deque} methods as indicated in the following table: * {@code Deque} methods as indicated in the following table:
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Comparison of Queue and Deque methods</caption> * <caption>Comparison of Queue and Deque methods</caption>
* <tr> * <tr>
* <td style="text-align:center"> <b>{@code Queue} Method</b></td> * <td style="text-align:center"> <b>{@code Queue} Method</b></td>
@ -137,7 +137,7 @@ package java.util;
* beginning of the deque. Stack methods are precisely equivalent to * beginning of the deque. Stack methods are precisely equivalent to
* {@code Deque} methods as indicated in the table below: * {@code Deque} methods as indicated in the table below:
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Comparison of Stack and Deque methods</caption> * <caption>Comparison of Stack and Deque methods</caption>
* <tr> * <tr>
* <td style="text-align:center"> <b>Stack Method</b></td> * <td style="text-align:center"> <b>Stack Method</b></td>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -290,12 +290,14 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <pre> * <pre>
* out.toUpperCase(Locale.getDefault(Locale.Category.FORMAT)) </pre> * out.toUpperCase(Locale.getDefault(Locale.Category.FORMAT)) </pre>
* *
* <table cellpadding=5 summary="genConv"> * <table class="striped">
* * <caption style="display:none">genConv</caption>
* <thead>
* <tr><th style="vertical-align:bottom"> Conversion * <tr><th style="vertical-align:bottom"> Conversion
* <th style="vertical-align:bottom"> Argument Category * <th style="vertical-align:bottom"> Argument Category
* <th style="vertical-align:bottom"> Description * <th style="vertical-align:bottom"> Description
* * </thead>
* <tbody>
* <tr><td style="vertical-align:top"> {@code 'b'}, {@code 'B'} * <tr><td style="vertical-align:top"> {@code 'b'}, {@code 'B'}
* <td style="vertical-align:top"> general * <td style="vertical-align:top"> general
* <td> If the argument <i>arg</i> is {@code null}, then the result is * <td> If the argument <i>arg</i> is {@code null}, then the result is
@ -365,6 +367,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td style="vertical-align:top"> line separator * <td style="vertical-align:top"> line separator
* <td> The result is the platform-specific line separator * <td> The result is the platform-specific line separator
* *
* </tbody>
* </table> * </table>
* *
* <p> Any characters not explicitly defined as conversions are illegal and are * <p> Any characters not explicitly defined as conversions are illegal and are
@ -381,8 +384,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* *
* <p> The following conversion characters are used for formatting times: * <p> The following conversion characters are used for formatting times:
* *
* <table cellpadding=5 summary="time"> * <table class="striped">
* * <caption style="display:none">time</caption>
* <tbody>
* <tr><td style="vertical-align:top"> {@code 'H'} * <tr><td style="vertical-align:top"> {@code 'H'}
* <td> Hour of the day for the 24-hour clock, formatted as two digits with * <td> Hour of the day for the 24-hour clock, formatted as two digits with
* a leading zero as necessary i.e. {@code 00 - 23}. * a leading zero as necessary i.e. {@code 00 - 23}.
@ -446,11 +450,14 @@ import jdk.internal.math.FormattedFloatingDecimal;
* 1970 {@code 00:00:00} UTC, i.e. {@code Long.MIN_VALUE} to * 1970 {@code 00:00:00} UTC, i.e. {@code Long.MIN_VALUE} to
* {@code Long.MAX_VALUE}. * {@code Long.MAX_VALUE}.
* *
* </tbody>
* </table> * </table>
* *
* <p> The following conversion characters are used for formatting dates: * <p> The following conversion characters are used for formatting dates:
* *
* <table cellpadding=5 summary="date"> * <table class="striped">
* <caption style="display:none">date</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top">{@code 'B'} * <tr><td style="vertical-align:top">{@code 'B'}
* <td> Locale-specific {@linkplain java.text.DateFormatSymbols#getMonths * <td> Locale-specific {@linkplain java.text.DateFormatSymbols#getMonths
@ -502,12 +509,15 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <tr><td style="vertical-align:top">{@code 'e'} * <tr><td style="vertical-align:top">{@code 'e'}
* <td> Day of month, formatted as two digits, i.e. {@code 1 - 31}. * <td> Day of month, formatted as two digits, i.e. {@code 1 - 31}.
* *
* </tbody>
* </table> * </table>
* *
* <p> The following conversion characters are used for formatting common * <p> The following conversion characters are used for formatting common
* date/time compositions. * date/time compositions.
* *
* <table cellpadding=5 summary="composites"> * <table class="striped">
* <caption style="display:none">composites</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top">{@code 'R'} * <tr><td style="vertical-align:top">{@code 'R'}
* <td> Time formatted for the 24-hour clock as {@code "%tH:%tM"} * <td> Time formatted for the 24-hour clock as {@code "%tH:%tM"}
@ -531,6 +541,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td> Date and time formatted as {@code "%ta %tb %td %tT %tZ %tY"}, * <td> Date and time formatted as {@code "%ta %tb %td %tT %tZ %tY"},
* e.g. {@code "Sun Jul 20 16:17:00 EDT 1969"}. * e.g. {@code "Sun Jul 20 16:17:00 EDT 1969"}.
* *
* </tbody>
* </table> * </table>
* *
* <p> Any characters not explicitly defined as date/time conversion suffixes * <p> Any characters not explicitly defined as date/time conversion suffixes
@ -541,14 +552,16 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <p> The following table summarizes the supported flags. <i>y</i> means the * <p> The following table summarizes the supported flags. <i>y</i> means the
* flag is supported for the indicated argument types. * flag is supported for the indicated argument types.
* *
* <table cellpadding=5 summary="genConv"> * <table class="striped">
* * <caption style="display:none">genConv</caption>
* <thead>
* <tr><th style="vertical-align:bottom"> Flag <th style="vertical-align:bottom"> General * <tr><th style="vertical-align:bottom"> Flag <th style="vertical-align:bottom"> General
* <th style="vertical-align:bottom"> Character <th style="vertical-align:bottom"> Integral * <th style="vertical-align:bottom"> Character <th style="vertical-align:bottom"> Integral
* <th style="vertical-align:bottom"> Floating Point * <th style="vertical-align:bottom"> Floating Point
* <th style="vertical-align:bottom"> Date/Time * <th style="vertical-align:bottom"> Date/Time
* <th style="vertical-align:bottom"> Description * <th style="vertical-align:bottom"> Description
* * </thead>
* <tbody>
* <tr><td> '-' <td style="text-align:center; vertical-align:top"> y * <tr><td> '-' <td style="text-align:center; vertical-align:top"> y
* <td style="text-align:center; vertical-align:top"> y * <td style="text-align:center; vertical-align:top"> y
* <td style="text-align:center; vertical-align:top"> y * <td style="text-align:center; vertical-align:top"> y
@ -599,6 +612,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td style="text-align:center"> - * <td style="text-align:center"> -
* <td> The result will enclose negative numbers in parentheses * <td> The result will enclose negative numbers in parentheses
* *
* </tbody>
* </table> * </table>
* *
* <p> <sup>1</sup> Depends on the definition of {@link Formattable}. * <p> <sup>1</sup> Depends on the definition of {@link Formattable}.
@ -705,7 +719,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* *
* <p> The following general conversions may be applied to any argument type: * <p> The following general conversions may be applied to any argument type:
* *
* <table cellpadding=5 summary="dgConv"> * <table class="striped">
* <caption style="display:none">dgConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 'b'} * <tr><td style="vertical-align:top"> {@code 'b'}
* <td style="vertical-align:top"> <code>'&#92;u0062'</code> * <td style="vertical-align:top"> <code>'&#92;u0062'</code>
@ -756,11 +772,14 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td style="vertical-align:top"> <code>'&#92;u0053'</code> * <td style="vertical-align:top"> <code>'&#92;u0053'</code>
* <td> The upper-case variant of {@code 's'}. * <td> The upper-case variant of {@code 's'}.
* *
* </tbody>
* </table> * </table>
* *
* <p> The following <a id="dFlags">flags</a> apply to general conversions: * <p> The following <a id="dFlags">flags</a> apply to general conversions:
* *
* <table cellpadding=5 summary="dFlags"> * <table class="striped">
* <caption style="display:none">dFlags</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code '-'} * <tr><td style="vertical-align:top"> {@code '-'}
* <td style="vertical-align:top"> <code>'&#92;u002d'</code> * <td style="vertical-align:top"> <code>'&#92;u002d'</code>
@ -775,6 +794,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td> Requires the output use an alternate form. The definition of the * <td> Requires the output use an alternate form. The definition of the
* form is specified by the conversion. * form is specified by the conversion.
* *
* </tbody>
* </table> * </table>
* *
* <p> The <a id="genWidth">width</a> is the minimum number of characters to * <p> The <a id="genWidth">width</a> is the minimum number of characters to
@ -801,7 +821,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* {@code false} then an {@link IllegalFormatCodePointException} will be * {@code false} then an {@link IllegalFormatCodePointException} will be
* thrown. * thrown.
* *
* <table cellpadding=5 summary="charConv"> * <table class="striped">
* <caption style="display:none">charConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 'c'} * <tr><td style="vertical-align:top"> {@code 'c'}
* <td style="vertical-align:top"> <code>'&#92;u0063'</code> * <td style="vertical-align:top"> <code>'&#92;u0063'</code>
@ -817,6 +839,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td style="vertical-align:top"> <code>'&#92;u0043'</code> * <td style="vertical-align:top"> <code>'&#92;u0043'</code>
* <td> The upper-case variant of {@code 'c'}. * <td> The upper-case variant of {@code 'c'}.
* *
* </tbody>
* </table> * </table>
* *
* <p> The {@code '-'} flag defined for <a href="#dFlags">General * <p> The {@code '-'} flag defined for <a href="#dFlags">General
@ -902,7 +925,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* {@code short}, {@link Short}, {@code int} and {@link Integer}, * {@code short}, {@link Short}, {@code int} and {@link Integer},
* {@code long}, and {@link Long}. * {@code long}, and {@link Long}.
* *
* <table cellpadding=5 summary="IntConv"> * <table class="striped">
* <caption style="display:none">IntConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 'd'} * <tr><td style="vertical-align:top"> {@code 'd'}
* <td style="vertical-align:top"> <code>'&#92;u0064'</code> * <td style="vertical-align:top"> <code>'&#92;u0064'</code>
@ -968,6 +993,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* all hexadecimal digits {@code 'a'} - {@code 'f'} * all hexadecimal digits {@code 'a'} - {@code 'f'}
* (<code>'&#92;u0061'</code> - <code>'&#92;u0066'</code>). * (<code>'&#92;u0061'</code> - <code>'&#92;u0066'</code>).
* *
* </tbody>
* </table> * </table>
* *
* <p> If the conversion is {@code 'o'}, {@code 'x'}, or {@code 'X'} and * <p> If the conversion is {@code 'o'}, {@code 'x'}, or {@code 'X'} and
@ -982,7 +1008,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <p> The following <a id="intFlags">flags</a> apply to numeric integral * <p> The following <a id="intFlags">flags</a> apply to numeric integral
* conversions: * conversions:
* *
* <table cellpadding=5 summary="intFlags"> * <table class="striped">
* <caption style="display:none">intFlags</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code '+'} * <tr><td style="vertical-align:top"> {@code '+'}
* <td style="vertical-align:top"> <code>'&#92;u002b'</code> * <td style="vertical-align:top"> <code>'&#92;u002b'</code>
@ -1025,6 +1053,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* (<code>'&#92;u0028'</code>) and append a {@code ')'} * (<code>'&#92;u0028'</code>) and append a {@code ')'}
* (<code>'&#92;u0029'</code>) to negative values. * (<code>'&#92;u0029'</code>) to negative values.
* *
* </tbody>
* </table> * </table>
* *
* <p> If no <a id="intdFlags">flags</a> are given the default formatting is * <p> If no <a id="intdFlags">flags</a> are given the default formatting is
@ -1060,7 +1089,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <p> The following conversions may be applied to {@link * <p> The following conversions may be applied to {@link
* java.math.BigInteger}. * java.math.BigInteger}.
* *
* <table cellpadding=5 summary="BIntConv"> * <table class="striped">
* <caption style="display:none">bIntConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 'd'} * <tr><td style="vertical-align:top"> {@code 'd'}
* <td style="vertical-align:top"> <code>'&#92;u0064'</code> * <td style="vertical-align:top"> <code>'&#92;u0064'</code>
@ -1125,6 +1156,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* all hexadecimal digits {@code 'a'} - {@code 'f'} * all hexadecimal digits {@code 'a'} - {@code 'f'}
* (<code>'&#92;u0061'</code> - <code>'&#92;u0066'</code>). * (<code>'&#92;u0061'</code> - <code>'&#92;u0066'</code>).
* *
* </tbody>
* </table> * </table>
* *
* <p> If the conversion is {@code 'o'}, {@code 'x'}, or {@code 'X'} and * <p> If the conversion is {@code 'o'}, {@code 'x'}, or {@code 'X'} and
@ -1154,7 +1186,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <p> The following conversions may be applied to {@code float}, {@link * <p> The following conversions may be applied to {@code float}, {@link
* Float}, {@code double} and {@link Double}. * Float}, {@code double} and {@link Double}.
* *
* <table cellpadding=5 summary="floatConv"> * <table class="striped">
* <caption style="display:none">floatConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 'e'} * <tr><td style="vertical-align:top"> {@code 'e'}
* <td style="vertical-align:top"> <code>'&#92;u0065'</code> * <td style="vertical-align:top"> <code>'&#92;u0065'</code>
@ -1331,6 +1365,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* (<code>'&#92;u0070'</code> and all hexadecimal digits {@code 'a'} - * (<code>'&#92;u0070'</code> and all hexadecimal digits {@code 'a'} -
* {@code 'f'} (<code>'&#92;u0061'</code> - <code>'&#92;u0066'</code>). * {@code 'f'} (<code>'&#92;u0061'</code> - <code>'&#92;u0066'</code>).
* *
* </tbody>
* </table> * </table>
* *
* <p> All <a href="#intFlags">flags</a> defined for Byte, Short, Integer, and * <p> All <a href="#intFlags">flags</a> defined for Byte, Short, Integer, and
@ -1388,7 +1423,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <p> The following conversions may be applied {@link java.math.BigDecimal * <p> The following conversions may be applied {@link java.math.BigDecimal
* BigDecimal}. * BigDecimal}.
* *
* <table cellpadding=5 summary="floatConv"> * <table class="striped">
* <caption style="display:none">floatConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 'e'} * <tr><td style="vertical-align:top"> {@code 'e'}
* <td style="vertical-align:top"> <code>'&#92;u0065'</code> * <td style="vertical-align:top"> <code>'&#92;u0065'</code>
@ -1492,6 +1529,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* For a canonical representation of the value, use {@link * For a canonical representation of the value, use {@link
* BigDecimal#toString()}. * BigDecimal#toString()}.
* *
* </tbody>
* </table> * </table>
* *
* <p> All <a href="#intFlags">flags</a> defined for Byte, Short, Integer, and * <p> All <a href="#intFlags">flags</a> defined for Byte, Short, Integer, and
@ -1512,7 +1550,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <p> This conversion may be applied to {@code long}, {@link Long}, {@link * <p> This conversion may be applied to {@code long}, {@link Long}, {@link
* Calendar}, {@link Date} and {@link TemporalAccessor TemporalAccessor} * Calendar}, {@link Date} and {@link TemporalAccessor TemporalAccessor}
* *
* <table cellpadding=5 summary="DTConv"> * <table class="striped">
* <caption style="display:none">DTConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 't'} * <tr><td style="vertical-align:top"> {@code 't'}
* <td style="vertical-align:top"> <code>'&#92;u0074'</code> * <td style="vertical-align:top"> <code>'&#92;u0074'</code>
@ -1521,6 +1561,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td style="vertical-align:top"> <code>'&#92;u0054'</code> * <td style="vertical-align:top"> <code>'&#92;u0054'</code>
* <td> The upper-case variant of {@code 't'}. * <td> The upper-case variant of {@code 't'}.
* *
* </tbody>
* </table> * </table>
* *
* <p> The following date and time conversion character suffixes are defined * <p> The following date and time conversion character suffixes are defined
@ -1532,7 +1573,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* *
* <p> The following conversion characters are used for formatting times: * <p> The following conversion characters are used for formatting times:
* *
* <table cellpadding=5 summary="time"> * <table class="striped">
* <caption style="display:none">time</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top"> {@code 'H'} * <tr><td style="vertical-align:top"> {@code 'H'}
* <td style="vertical-align:top"> <code>'&#92;u0048'</code> * <td style="vertical-align:top"> <code>'&#92;u0048'</code>
@ -1620,11 +1663,14 @@ import jdk.internal.math.FormattedFloatingDecimal;
* {@code Long.MAX_VALUE}. The precision of this value is limited by * {@code Long.MAX_VALUE}. The precision of this value is limited by
* the resolution of the underlying operating system or hardware. * the resolution of the underlying operating system or hardware.
* *
* </tbody>
* </table> * </table>
* *
* <p> The following conversion characters are used for formatting dates: * <p> The following conversion characters are used for formatting dates:
* *
* <table cellpadding=5 summary="date"> * <table class="striped">
* <caption style="display:none">date</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top">{@code 'B'} * <tr><td style="vertical-align:top">{@code 'B'}
* <td style="vertical-align:top"> <code>'&#92;u0042'</code> * <td style="vertical-align:top"> <code>'&#92;u0042'</code>
@ -1692,12 +1738,15 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td> Day of month, formatted as two digits, i.e. {@code 1 - 31} where * <td> Day of month, formatted as two digits, i.e. {@code 1 - 31} where
* "{@code 1}" is the first day of the month. * "{@code 1}" is the first day of the month.
* *
* </tbody>
* </table> * </table>
* *
* <p> The following conversion characters are used for formatting common * <p> The following conversion characters are used for formatting common
* date/time compositions. * date/time compositions.
* *
* <table cellpadding=5 summary="composites"> * <table class="striped">
* <caption style="display:none">composites</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top">{@code 'R'} * <tr><td style="vertical-align:top">{@code 'R'}
* <td style="vertical-align:top"> <code>'&#92;u0052'</code> * <td style="vertical-align:top"> <code>'&#92;u0052'</code>
@ -1727,6 +1776,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <td> Date and time formatted as {@code "%ta %tb %td %tT %tZ %tY"}, * <td> Date and time formatted as {@code "%ta %tb %td %tT %tZ %tY"},
* e.g. {@code "Sun Jul 20 16:17:00 EDT 1969"}. * e.g. {@code "Sun Jul 20 16:17:00 EDT 1969"}.
* *
* </tbody>
* </table> * </table>
* *
* <p> The {@code '-'} flag defined for <a href="#dFlags">General * <p> The {@code '-'} flag defined for <a href="#dFlags">General
@ -1748,7 +1798,9 @@ import jdk.internal.math.FormattedFloatingDecimal;
* *
* <p> The conversion does not correspond to any argument. * <p> The conversion does not correspond to any argument.
* *
* <table cellpadding=5 summary="DTConv"> * <table class="striped">
* <caption style="display:none">DTConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top">{@code '%'} * <tr><td style="vertical-align:top">{@code '%'}
* <td> The result is a literal {@code '%'} (<code>'&#92;u0025'</code>) * <td> The result is a literal {@code '%'} (<code>'&#92;u0025'</code>)
@ -1767,18 +1819,22 @@ import jdk.internal.math.FormattedFloatingDecimal;
* <p> The precision is not applicable. If the precision is specified an * <p> The precision is not applicable. If the precision is specified an
* {@link IllegalFormatPrecisionException} will be thrown. * {@link IllegalFormatPrecisionException} will be thrown.
* *
* </tbody>
* </table> * </table>
* *
* <h4><a id="dls">Line Separator</a></h4> * <h4><a id="dls">Line Separator</a></h4>
* *
* <p> The conversion does not correspond to any argument. * <p> The conversion does not correspond to any argument.
* *
* <table cellpadding=5 summary="DTConv"> * <table class="striped">
* <caption style="display:none">DTConv</caption>
* <tbody>
* *
* <tr><td style="vertical-align:top">{@code 'n'} * <tr><td style="vertical-align:top">{@code 'n'}
* <td> the platform-specific line separator as returned by {@link * <td> the platform-specific line separator as returned by {@link
* System#lineSeparator()}. * System#lineSeparator()}.
* *
* </tbody>
* </table> * </table>
* *
* <p> Flags, width, and precision are not applicable. If any are provided an * <p> Flags, width, and precision are not applicable. If any are provided an

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -159,88 +159,89 @@ import sun.util.calendar.ZoneInfo;
* undefined. <code>GregorianCalendar</code> uses the following * undefined. <code>GregorianCalendar</code> uses the following
* default value for each calendar field if its value is undefined. * default value for each calendar field if its value is undefined.
* *
* <table cellpadding="0" cellspacing="3" border="0" * <table class="striped" style="text-align: left; width: 66%;">
* summary="GregorianCalendar default field values" * <caption style="display:none">GregorianCalendar default field values</caption>
* style="text-align: left; width: 66%;"> * <thead>
* <tr>
* <th>
* Field
* </th>
* <th>
Default Value
* </th>
* </tr>
* </thead>
* <tbody> * <tbody>
* <tr> * <tr>
* <th style="vertical-align: top; background-color: rgb(204, 204, 255); * <td>
* text-align: center;">Field<br> * <code>ERA</code>
* </th>
* <th style="vertical-align: top; background-color: rgb(204, 204, 255);
* text-align: center;">Default Value<br>
* </th>
* </tr>
* <tr>
* <td style="vertical-align: middle;">
* <code>ERA<br></code>
* </td> * </td>
* <td style="vertical-align: middle;"> * <td>
* <code>AD<br></code> * <code>AD</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: middle; background-color: rgb(238, 238, 255);"> * <td>
* <code>YEAR<br></code> * <code>YEAR</code>
* </td> * </td>
* <td style="vertical-align: middle; background-color: rgb(238, 238, 255);"> * <td>
* <code>1970<br></code> * <code>1970</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: middle;"> * <td>
* <code>MONTH<br></code> * <code>MONTH</code>
* </td> * </td>
* <td style="vertical-align: middle;"> * <td>
* <code>JANUARY<br></code> * <code>JANUARY</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td>
* <code>DAY_OF_MONTH<br></code> * <code>DAY_OF_MONTH</code>
* </td> * </td>
* <td style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td>
* <code>1<br></code> * <code>1</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: middle;"> * <td>
* <code>DAY_OF_WEEK<br></code> * <code>DAY_OF_WEEK</code>
* </td> * </td>
* <td style="vertical-align: middle;"> * <td>
* <code>the first day of week<br></code> * <code>the first day of week</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td>
* <code>WEEK_OF_MONTH<br></code> * <code>WEEK_OF_MONTH</code>
* </td> * </td>
* <td style="vertical-align: top; background-color: rgb(238, 238, 255);"> * <td>
* <code>0<br></code> * <code>0</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: top;"> * <td>
* <code>DAY_OF_WEEK_IN_MONTH<br></code> * <code>DAY_OF_WEEK_IN_MONTH</code>
* </td> * </td>
* <td style="vertical-align: top;"> * <td>
* <code>1<br></code> * <code>1</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: middle; background-color: rgb(238, 238, 255);"> * <td>
* <code>AM_PM<br></code> * <code>AM_PM</code>
* </td> * </td>
* <td style="vertical-align: middle; background-color: rgb(238, 238, 255);"> * <td>
* <code>AM<br></code> * <code>AM</code>
* </td> * </td>
* </tr> * </tr>
* <tr> * <tr>
* <td style="vertical-align: middle;"> * <td>
* <code>HOUR, HOUR_OF_DAY, MINUTE, SECOND, MILLISECOND<br></code> * <code>HOUR, HOUR_OF_DAY, MINUTE, SECOND, MILLISECOND</code>
* </td> * </td>
* <td style="vertical-align: middle;"> * <td>
* <code>0<br></code> * <code>0</code>
* </td> * </td>
* </tr> * </tr>
* </tbody> * </tbody>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -1587,44 +1587,50 @@ public final class Locale implements Cloneable, Serializable {
* *
* <p>Grandfathered tags with canonical replacements are as follows: * <p>Grandfathered tags with canonical replacements are as follows:
* *
* <table summary="Grandfathered tags with canonical replacements"> * <table class="striped">
* <caption style="display:none">Grandfathered tags with canonical replacements</caption>
* <thead style="text-align:center">
* <tr><th style="padding: 0 2px">grandfathered tag</th><th style="padding: 0 2px">modern replacement</th></tr>
* </thead>
* <tbody style="text-align:center"> * <tbody style="text-align:center">
* <tr><th>grandfathered tag</th><th>&nbsp;</th><th>modern replacement</th></tr> * <tr><td>art-lojban</td><td>jbo</td></tr>
* <tr><td>art-lojban</td><td>&nbsp;</td><td>jbo</td></tr> * <tr><td>i-ami</td><td>ami</td></tr>
* <tr><td>i-ami</td><td>&nbsp;</td><td>ami</td></tr> * <tr><td>i-bnn</td><td>bnn</td></tr>
* <tr><td>i-bnn</td><td>&nbsp;</td><td>bnn</td></tr> * <tr><td>i-hak</td><td>hak</td></tr>
* <tr><td>i-hak</td><td>&nbsp;</td><td>hak</td></tr> * <tr><td>i-klingon</td><td>tlh</td></tr>
* <tr><td>i-klingon</td><td>&nbsp;</td><td>tlh</td></tr> * <tr><td>i-lux</td><td>lb</td></tr>
* <tr><td>i-lux</td><td>&nbsp;</td><td>lb</td></tr> * <tr><td>i-navajo</td><td>nv</td></tr>
* <tr><td>i-navajo</td><td>&nbsp;</td><td>nv</td></tr> * <tr><td>i-pwn</td><td>pwn</td></tr>
* <tr><td>i-pwn</td><td>&nbsp;</td><td>pwn</td></tr> * <tr><td>i-tao</td><td>tao</td></tr>
* <tr><td>i-tao</td><td>&nbsp;</td><td>tao</td></tr> * <tr><td>i-tay</td><td>tay</td></tr>
* <tr><td>i-tay</td><td>&nbsp;</td><td>tay</td></tr> * <tr><td>i-tsu</td><td>tsu</td></tr>
* <tr><td>i-tsu</td><td>&nbsp;</td><td>tsu</td></tr> * <tr><td>no-bok</td><td>nb</td></tr>
* <tr><td>no-bok</td><td>&nbsp;</td><td>nb</td></tr> * <tr><td>no-nyn</td><td>nn</td></tr>
* <tr><td>no-nyn</td><td>&nbsp;</td><td>nn</td></tr> * <tr><td>sgn-BE-FR</td><td>sfb</td></tr>
* <tr><td>sgn-BE-FR</td><td>&nbsp;</td><td>sfb</td></tr> * <tr><td>sgn-BE-NL</td><td>vgt</td></tr>
* <tr><td>sgn-BE-NL</td><td>&nbsp;</td><td>vgt</td></tr> * <tr><td>sgn-CH-DE</td><td>sgg</td></tr>
* <tr><td>sgn-CH-DE</td><td>&nbsp;</td><td>sgg</td></tr> * <tr><td>zh-guoyu</td><td>cmn</td></tr>
* <tr><td>zh-guoyu</td><td>&nbsp;</td><td>cmn</td></tr> * <tr><td>zh-hakka</td><td>hak</td></tr>
* <tr><td>zh-hakka</td><td>&nbsp;</td><td>hak</td></tr> * <tr><td>zh-min-nan</td><td>nan</td></tr>
* <tr><td>zh-min-nan</td><td>&nbsp;</td><td>nan</td></tr> * <tr><td>zh-xiang</td><td>hsn</td></tr>
* <tr><td>zh-xiang</td><td>&nbsp;</td><td>hsn</td></tr>
* </tbody> * </tbody>
* </table> * </table>
* *
* <p>Grandfathered tags with no modern replacement will be * <p>Grandfathered tags with no modern replacement will be
* converted as follows: * converted as follows:
* *
* <table summary="Grandfathered tags with no modern replacement"> * <table class="striped">
* <caption style="display:none">Grandfathered tags with no modern replacement</caption>
* <thead style="text-align:center">
* <tr><th style="padding: 0 2px">grandfathered tag</th><th style="padding: 0 2px">converts to</th></tr>
* </thead>
* <tbody style="text-align:center"> * <tbody style="text-align:center">
* <tr><th>grandfathered tag</th><th>&nbsp;</th><th>converts to</th></tr> * <tr><td>cel-gaulish</td><td>xtg-x-cel-gaulish</td></tr>
* <tr><td>cel-gaulish</td><td>&nbsp;</td><td>xtg-x-cel-gaulish</td></tr> * <tr><td>en-GB-oed</td><td>en-GB-x-oed</td></tr>
* <tr><td>en-GB-oed</td><td>&nbsp;</td><td>en-GB-x-oed</td></tr> * <tr><td>i-default</td><td>en-x-i-default</td></tr>
* <tr><td>i-default</td><td>&nbsp;</td><td>en-x-i-default</td></tr> * <tr><td>i-enochian</td><td>und-x-i-enochian</td></tr>
* <tr><td>i-enochian</td><td>&nbsp;</td><td>und-x-i-enochian</td></tr> * <tr><td>i-mingo</td><td>see-x-i-mingo</td></tr>
* <tr><td>i-mingo</td><td>&nbsp;</td><td>see-x-i-mingo</td></tr> * <tr><td>zh-min</td><td>nan-x-zh-min</td></tr>
* <tr><td>zh-min</td><td>&nbsp;</td><td>nan-x-zh-min</td></tr>
* </tbody> * </tbody>
* </table> * </table>
* *
@ -2767,12 +2773,16 @@ public final class Locale implements Cloneable, Serializable {
* *
* The filtering method will behave as follows: * The filtering method will behave as follows:
* *
* <table cellpadding=2 summary="Filtering method behavior"> * <table class="striped">
* <caption>Filtering method behavior</caption>
* <thead>
* <tr> * <tr>
* <th>Filtering Mode</th> * <th>Filtering Mode</th>
* <th>Language Priority List: {@code "de-DE"}</th> * <th>Language Priority List: {@code "de-DE"}</th>
* <th>Language Priority List: {@code "de-*-DE"}</th> * <th>Language Priority List: {@code "de-*-DE"}</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td style="vertical-align:top"> * <td style="vertical-align:top">
* {@link FilteringMode#AUTOSELECT_FILTERING AUTOSELECT_FILTERING} * {@link FilteringMode#AUTOSELECT_FILTERING AUTOSELECT_FILTERING}
@ -2832,6 +2842,7 @@ public final class Locale implements Cloneable, Serializable {
* not a valid basic language range. * not a valid basic language range.
* </td> * </td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* @see #filter(List, Collection, FilteringMode) * @see #filter(List, Collection, FilteringMode)

View file

@ -47,7 +47,7 @@ package java.util;
* implementations; in most implementations, insert operations cannot * implementations; in most implementations, insert operations cannot
* fail. * fail.
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Summary of Queue methods</caption> * <caption>Summary of Queue methods</caption>
* <tr> * <tr>
* <td></td> * <td></td>

View file

@ -1222,12 +1222,15 @@ public abstract class ResourceBundle {
* <p>Calling <code>getBundle</code> with the locale arguments below will * <p>Calling <code>getBundle</code> with the locale arguments below will
* instantiate resource bundles as follows: * instantiate resource bundles as follows:
* *
* <table summary="getBundle() locale to resource bundle mapping"> * <table class="borderless">
* <caption style="display:none">getBundle() locale to resource bundle mapping</caption>
* <tbody>
* <tr><td>Locale("fr", "CH")</td><td>MyResources_fr_CH.class, parent MyResources_fr.properties, parent MyResources.class</td></tr> * <tr><td>Locale("fr", "CH")</td><td>MyResources_fr_CH.class, parent MyResources_fr.properties, parent MyResources.class</td></tr>
* <tr><td>Locale("fr", "FR")</td><td>MyResources_fr.properties, parent MyResources.class</td></tr> * <tr><td>Locale("fr", "FR")</td><td>MyResources_fr.properties, parent MyResources.class</td></tr>
* <tr><td>Locale("de", "DE")</td><td>MyResources_en.properties, parent MyResources.class</td></tr> * <tr><td>Locale("de", "DE")</td><td>MyResources_en.properties, parent MyResources.class</td></tr>
* <tr><td>Locale("en", "US")</td><td>MyResources_en.properties, parent MyResources.class</td></tr> * <tr><td>Locale("en", "US")</td><td>MyResources_en.properties, parent MyResources.class</td></tr>
* <tr><td>Locale("es", "ES")</td><td>MyResources_es_ES.class, parent MyResources.class</td></tr> * <tr><td>Locale("es", "ES")</td><td>MyResources_es_ES.class, parent MyResources.class</td></tr>
* </tbody>
* </table> * </table>
* *
* <p>The file MyResources_fr_CH.properties is never used because it is * <p>The file MyResources_fr_CH.properties is never used because it is
@ -1311,9 +1314,9 @@ public abstract class ResourceBundle {
* sequence of locale-format combinations to be used to call * sequence of locale-format combinations to be used to call
* <code>control.newBundle</code>. * <code>control.newBundle</code>.
* *
* <table style="width: 50%; text-align: left; margin-left: 40px;" * <table class=striped style="width: 50%; text-align: left; margin-left: 40px;">
* border="0" cellpadding="2" cellspacing="2" summary="locale-format combinations for newBundle"> * <caption style="display:none">locale-format combinations for newBundle</caption>
* <tbody> * <thead>
* <tr> * <tr>
* <td * <td
* style="vertical-align: top; text-align: left; font-weight: bold; width: 50%;"><code>Locale</code><br> * style="vertical-align: top; text-align: left; font-weight: bold; width: 50%;"><code>Locale</code><br>
@ -1322,6 +1325,8 @@ public abstract class ResourceBundle {
* style="vertical-align: top; text-align: left; font-weight: bold; width: 50%;"><code>format</code><br> * style="vertical-align: top; text-align: left; font-weight: bold; width: 50%;"><code>format</code><br>
* </td> * </td>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td style="vertical-align: top; width: 50%;"><code>Locale("de", "DE")</code><br> * <td style="vertical-align: top; width: 50%;"><code>Locale("de", "DE")</code><br>
* </td> * </td>

View file

@ -53,7 +53,7 @@ import java.util.NoSuchElementException;
* and the fourth blocks for only a given maximum time limit before giving * and the fourth blocks for only a given maximum time limit before giving
* up. These methods are summarized in the following table: * up. These methods are summarized in the following table:
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Summary of BlockingDeque methods</caption> * <caption>Summary of BlockingDeque methods</caption>
* <tr> * <tr>
* <td style="text-align:center" COLSPAN = 5> <b>First Element (Head)</b></td> * <td style="text-align:center" COLSPAN = 5> <b>First Element (Head)</b></td>
@ -128,7 +128,7 @@ import java.util.NoSuchElementException;
* {@code BlockingQueue} interface are precisely equivalent to * {@code BlockingQueue} interface are precisely equivalent to
* {@code BlockingDeque} methods as indicated in the following table: * {@code BlockingDeque} methods as indicated in the following table:
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Comparison of BlockingQueue and BlockingDeque methods</caption> * <caption>Comparison of BlockingQueue and BlockingDeque methods</caption>
* <tr> * <tr>
* <td style="text-align:center"> <b>{@code BlockingQueue} Method</b></td> * <td style="text-align:center"> <b>{@code BlockingQueue} Method</b></td>

View file

@ -53,7 +53,7 @@ import java.util.Queue;
* and the fourth blocks for only a given maximum time limit before giving * and the fourth blocks for only a given maximum time limit before giving
* up. These methods are summarized in the following table: * up. These methods are summarized in the following table:
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Summary of BlockingQueue methods</caption> * <caption>Summary of BlockingQueue methods</caption>
* <tr> * <tr>
* <td></td> * <td></td>

View file

@ -109,7 +109,7 @@ import java.util.concurrent.locks.LockSupport;
* async event-style tasks that are not usually joined, in which case * async event-style tasks that are not usually joined, in which case
* there is little difference among choice of methods. * there is little difference among choice of methods.
* *
* <table BORDER CELLPADDING=3 CELLSPACING=1> * <table class="plain">
* <caption>Summary of task execution methods</caption> * <caption>Summary of task execution methods</caption>
* <tr> * <tr>
* <td></td> * <td></td>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -79,13 +79,15 @@ import java.util.stream.StreamSupport;
* *
* <h3><a id="sum">Summary of regular-expression constructs</a></h3> * <h3><a id="sum">Summary of regular-expression constructs</a></h3>
* *
* <table border="0" cellpadding="1" cellspacing="0" * <table class="borderless">
* summary="Regular expression constructs, and what they match"> * <caption style="display:none">Regular expression constructs, and what they match</caption>
* * <thead>
* <tr style="text-align:left"> * <tr style="text-align:left">
* <th style="text-align:left" id="construct">Construct</th> * <th style="text-align:left" id="construct">Construct</th>
* <th style="text-align:left" id="matches">Matches</th> * <th style="text-align:left" id="matches">Matches</th>
* </tr> * </tr>
* </thead>
* <tbody>
* *
* <tr><th>&nbsp;</th></tr> * <tr><th>&nbsp;</th></tr>
* <tr style="text-align:left"><th colspan="2" id="characters">Characters</th></tr> * <tr style="text-align:left"><th colspan="2" id="characters">Characters</th></tr>
@ -383,6 +385,7 @@ import java.util.stream.StreamSupport;
* <tr><td style="vertical-align:top" headers="construct special">{@code (?>}<i>X</i>{@code )}</td> * <tr><td style="vertical-align:top" headers="construct special">{@code (?>}<i>X</i>{@code )}</td>
* <td headers="matches"><i>X</i>, as an independent, non-capturing group</td></tr> * <td headers="matches"><i>X</i>, as an independent, non-capturing group</td></tr>
* *
* </tbody>
* </table> * </table>
* *
* <hr> * <hr>
@ -429,8 +432,9 @@ import java.util.stream.StreamSupport;
* <p> The precedence of character-class operators is as follows, from * <p> The precedence of character-class operators is as follows, from
* highest to lowest: * highest to lowest:
* *
* <blockquote><table border="0" cellpadding="1" cellspacing="0" * <blockquote><table>
* summary="Precedence of character class operators."> * <caption style="display:none">Precedence of character class operators.</caption>
* <tbody>
* <tr><th>1&nbsp;&nbsp;&nbsp;&nbsp;</th> * <tr><th>1&nbsp;&nbsp;&nbsp;&nbsp;</th>
* <td>Literal escape&nbsp;&nbsp;&nbsp;&nbsp;</td> * <td>Literal escape&nbsp;&nbsp;&nbsp;&nbsp;</td>
* <td>{@code \x}</td></tr> * <td>{@code \x}</td></tr>
@ -446,6 +450,7 @@ import java.util.stream.StreamSupport;
* <tr><th>5&nbsp;&nbsp;&nbsp;&nbsp;</th> * <tr><th>5&nbsp;&nbsp;&nbsp;&nbsp;</th>
* <td>Intersection</td> * <td>Intersection</td>
* <td>{@code [a-z&&[aeiou]]}</td></tr> * <td>{@code [a-z&&[aeiou]]}</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* <p> Note that a different set of metacharacters are in effect inside * <p> Note that a different set of metacharacters are in effect inside
@ -496,7 +501,9 @@ import java.util.stream.StreamSupport;
* left to right. In the expression {@code ((A)(B(C)))}, for example, there * left to right. In the expression {@code ((A)(B(C)))}, for example, there
* are four such groups: </p> * are four such groups: </p>
* *
* <blockquote><table cellpadding=1 cellspacing=0 summary="Capturing group numberings"> * <blockquote><table>
* <caption style="display:none">Capturing group numberings</caption>
* <tbody>
* <tr><th>1&nbsp;&nbsp;&nbsp;&nbsp;</th> * <tr><th>1&nbsp;&nbsp;&nbsp;&nbsp;</th>
* <td>{@code ((A)(B(C)))}</td></tr> * <td>{@code ((A)(B(C)))}</td></tr>
* <tr><th>2&nbsp;&nbsp;&nbsp;&nbsp;</th> * <tr><th>2&nbsp;&nbsp;&nbsp;&nbsp;</th>
@ -505,6 +512,7 @@ import java.util.stream.StreamSupport;
* <td>{@code (B(C))}</td></tr> * <td>{@code (B(C))}</td></tr>
* <tr><th>4&nbsp;&nbsp;&nbsp;&nbsp;</th> * <tr><th>4&nbsp;&nbsp;&nbsp;&nbsp;</th>
* <td>{@code (C)}</td></tr> * <td>{@code (C)}</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* <p> Group zero always stands for the entire expression. * <p> Group zero always stands for the entire expression.
@ -641,12 +649,15 @@ import java.util.stream.StreamSupport;
* of <a href="http://www.unicode.org/reports/tr18/"><i>Unicode Regular Expression * of <a href="http://www.unicode.org/reports/tr18/"><i>Unicode Regular Expression
* </i></a>, when {@link #UNICODE_CHARACTER_CLASS} flag is specified. * </i></a>, when {@link #UNICODE_CHARACTER_CLASS} flag is specified.
* *
* <table border="0" cellpadding="1" cellspacing="0" * <table>
* summary="predefined and posix character classes in Unicode mode"> * <caption style="display:none">predefined and posix character classes in Unicode mode</caption>
* <thead>
* <tr style="text-align:left"> * <tr style="text-align:left">
* <th style="text-align:left" id="predef_classes">Classes</th> * <th style="text-align:left" id="predef_classes">Classes</th>
* <th style="text-align:left" id="predef_matches">Matches</th> * <th style="text-align:left" id="predef_matches">Matches</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr><td>{@code \p{Lower}}</td> * <tr><td>{@code \p{Lower}}</td>
* <td>A lowercase character:{@code \p{IsLowercase}}</td></tr> * <td>A lowercase character:{@code \p{IsLowercase}}</td></tr>
* <tr><td>{@code \p{Upper}}</td> * <tr><td>{@code \p{Upper}}</td>
@ -685,6 +696,7 @@ import java.util.stream.StreamSupport;
* <td>A word character: {@code [\p{Alpha}\p{gc=Mn}\p{gc=Me}\p{gc=Mc}\p{Digit}\p{gc=Pc}\p{IsJoin_Control}]}</td></tr> * <td>A word character: {@code [\p{Alpha}\p{gc=Mn}\p{gc=Me}\p{gc=Mc}\p{Digit}\p{gc=Pc}\p{IsJoin_Control}]}</td></tr>
* <tr><td>{@code \W}</td> * <tr><td>{@code \W}</td>
* <td>A non-word character: {@code [^\w]}</td></tr> * <td>A non-word character: {@code [^\w]}</td></tr>
* </tbody>
* </table> * </table>
* <p> * <p>
* <a id="jcc"> * <a id="jcc">
@ -1207,11 +1219,14 @@ public final class Pattern
* <p> The input {@code "boo:and:foo"}, for example, yields the following * <p> The input {@code "boo:and:foo"}, for example, yields the following
* results with these parameters: * results with these parameters:
* *
* <blockquote><table cellpadding=1 cellspacing=0 * <blockquote><table>
* summary="Split examples showing regex, limit, and result"> * <caption>Split examples showing regex, limit, and result</caption>
* <thead>
* <tr><th style="text-align:left"><i>Regex&nbsp;&nbsp;&nbsp;&nbsp;</i></th> * <tr><th style="text-align:left"><i>Regex&nbsp;&nbsp;&nbsp;&nbsp;</i></th>
* <th style="text-align:left"><i>Limit&nbsp;&nbsp;&nbsp;&nbsp;</i></th> * <th style="text-align:left"><i>Limit&nbsp;&nbsp;&nbsp;&nbsp;</i></th>
* <th style="text-align:left"><i>Result&nbsp;&nbsp;&nbsp;&nbsp;</i></th></tr> * <th style="text-align:left"><i>Result&nbsp;&nbsp;&nbsp;&nbsp;</i></th></tr>
* </thead>
* <tbody>
* <tr><td style="text-align:center">:</td> * <tr><td style="text-align:center">:</td>
* <td style="text-align:center">2</td> * <td style="text-align:center">2</td>
* <td>{@code { "boo", "and:foo" }}</td></tr> * <td>{@code { "boo", "and:foo" }}</td></tr>
@ -1230,6 +1245,7 @@ public final class Pattern
* <tr><td style="text-align:center">o</td> * <tr><td style="text-align:center">o</td>
* <td style="text-align:center">0</td> * <td style="text-align:center">0</td>
* <td>{@code { "b", "", ":and:f" }}</td></tr> * <td>{@code { "b", "", ":and:f" }}</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* @param input * @param input
@ -1294,14 +1310,18 @@ public final class Pattern
* <p> The input {@code "boo:and:foo"}, for example, yields the following * <p> The input {@code "boo:and:foo"}, for example, yields the following
* results with these expressions: * results with these expressions:
* *
* <blockquote><table cellpadding=1 cellspacing=0 * <blockquote><table>
* summary="Split examples showing regex and result"> * <caption style="display:none">Split examples showing regex and result</caption>
* <thead>
* <tr><th style="text-align:left"><i>Regex&nbsp;&nbsp;&nbsp;&nbsp;</i></th> * <tr><th style="text-align:left"><i>Regex&nbsp;&nbsp;&nbsp;&nbsp;</i></th>
* <th style="text-align:left"><i>Result</i></th></tr> * <th style="text-align:left"><i>Result</i></th></tr>
* </thead>
* <tbody>
* <tr><td style="text-align:center">:</td> * <tr><td style="text-align:center">:</td>
* <td>{@code { "boo", "and", "foo" }}</td></tr> * <td>{@code { "boo", "and", "foo" }}</td></tr>
* <tr><td style="text-align:center">o</td> * <tr><td style="text-align:center">o</td>
* <td>{@code { "b", "", ":and:f" }}</td></tr> * <td>{@code { "b", "", ":and:f" }}</td></tr>
* </tbody>
* </table></blockquote> * </table></blockquote>
* *
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -46,12 +46,16 @@ import java.util.Map;
* Calendar}. The following are calendar-common fields and their values to be * Calendar}. The following are calendar-common fields and their values to be
* supported for each calendar system. * supported for each calendar system.
* *
* <table style="border-bottom:1px solid" border="1" cellpadding="3" cellspacing="0" summary="Field values"> * <table class="plain" style="border-bottom:1px solid">
* <caption style="display:none">Field values</caption>
* <thead>
* <tr> * <tr>
* <th>Field</th> * <th>Field</th>
* <th>Value</th> * <th>Value</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td valign="top">{@link Calendar#MONTH}</td> * <td valign="top">{@link Calendar#MONTH}</td>
* <td valign="top">{@link Calendar#JANUARY} to {@link Calendar#UNDECIMBER}</td> * <td valign="top">{@link Calendar#JANUARY} to {@link Calendar#UNDECIMBER}</td>
@ -73,17 +77,22 @@ import java.util.Map;
* <td valign="top">{@link Calendar#AM} to {@link Calendar#PM}</td> * <td valign="top">{@link Calendar#AM} to {@link Calendar#PM}</td>
* <td>0 - AM, 1 - PM</td> * <td>0 - AM, 1 - PM</td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p style="margin-top:20px">The following are calendar-specific fields and their values to be supported. * <p style="margin-top:20px">The following are calendar-specific fields and their values to be supported.
* *
* <table style="border-bottom:1px solid" border="1" cellpadding="3" cellspacing="0" summary="Calendar type and field values"> * <table class="plain" style="border-bottom:1px solid">
* <caption style="display:none">Calendar type and field values</caption>
* <thead>
* <tr> * <tr>
* <th>Calendar Type</th> * <th>Calendar Type</th>
* <th>Field</th> * <th>Field</th>
* <th>Value</th> * <th>Value</th>
* <th>Description</th> * <th>Description</th>
* </tr> * </tr>
* </thead>
* <tbody>
* <tr> * <tr>
* <td rowspan="2" valign="top">{@code "gregory"}</td> * <td rowspan="2" valign="top">{@code "gregory"}</td>
* <td rowspan="2" valign="top">{@link Calendar#ERA}</td> * <td rowspan="2" valign="top">{@link Calendar#ERA}</td>
@ -154,6 +163,7 @@ import java.util.Map;
* <td>1</td> * <td>1</td>
* <td>Anno Hijrah (AH)</td> * <td>Anno Hijrah (AH)</td>
* </tr> * </tr>
* </tbody>
* </table> * </table>
* *
* <p>Calendar field value names for {@code "gregory"} must be consistent with * <p>Calendar field value names for {@code "gregory"} must be consistent with

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -41,7 +41,7 @@ import java.util.Spliterator;
* contexts: * contexts:
* *
* <div> * <div>
* <table> * <table class="borderless">
* <caption>Type Characteristics</caption> * <caption>Type Characteristics</caption>
* <thead class="tableSubHeadingColor"> * <thead class="tableSubHeadingColor">
* <tr> * <tr>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -44,14 +44,17 @@ import java.security.*;
* and for each provides a description of what the permission allows * and for each provides a description of what the permission allows
* and a discussion of the risks of granting code the permission. * and a discussion of the risks of granting code the permission.
* *
* <table border=1 cellpadding=5 * <table class="striped">
* summary="permission name, what it allows, and associated risks"> * <caption style="display:none">permission name, what it allows, and associated risks</caption>
* <thead>
* <tr> * <tr>
* <th>Permission Target Name</th> * <th>Permission Target Name</th>
* <th>What the Permission Allows</th> * <th>What the Permission Allows</th>
* <th>Risks of Allowing this Permission</th> * <th>Risks of Allowing this Permission</th>
* </tr> * </tr>
* </thead>
* *
* <tbody>
* <tr> * <tr>
* <td>setHostnameVerifier</td> * <td>setHostnameVerifier</td>
* <td>The ability to set a callback which can decide whether to * <td>The ability to set a callback which can decide whether to
@ -84,6 +87,7 @@ import java.security.*;
* </td> * </td>
* </tr> * </tr>
* *
* </tbody>
* </table> * </table>
* *
* @see java.security.BasicPermission * @see java.security.BasicPermission