< prev index next >

src/java.base/share/classes/java/nio/file/Files.java

Print this page

        

*** 231,242 **** * beginning of the file. * * <p> In the addition to {@code READ} and {@code WRITE}, the following * options may be present: * ! * <table border=1 cellpadding=5 summary="Options"> * <tr> <th>Option</th> <th>Description</th> </tr> * <tr> * <td> {@link StandardOpenOption#APPEND APPEND} </td> * <td> If this option is present then the file is opened for writing and * each invocation of the channel's {@code write} method first advances * the position to the end of the file and then writes the requested --- 231,246 ---- * beginning of the file. * * <p> In the addition to {@code READ} and {@code WRITE}, the following * options may be present: * ! * <table class="altrows"> ! * <caption style="display:none">Options</caption> ! * <thead> * <tr> <th>Option</th> <th>Description</th> </tr> + * </thead> + * <tbody> * <tr> * <td> {@link StandardOpenOption#APPEND APPEND} </td> * <td> If this option is present then the file is opened for writing and * each invocation of the channel's {@code write} method first advances * the position to the end of the file and then writes the requested
*** 292,301 **** --- 296,306 ---- * <td> Requires that every update to the file's content be written * synchronously to the underlying storage device. (see <a * href="package-summary.html#integrity"> Synchronized I/O file * integrity</a>). </td> * </tr> + * </tbody> * </table> * * <p> An implementation may also support additional implementation specific * options. *
*** 1186,1197 **** * walkFileTree} method to copy a directory and all entries in the directory, * or an entire <i>file-tree</i> where required. * * <p> The {@code options} parameter may include any of the following: * ! * <table border=1 cellpadding=5 summary=""> * <tr> <th>Option</th> <th>Description</th> </tr> * <tr> * <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td> * <td> If the target file exists, then the target file is replaced if it * is not a non-empty directory. If the target file exists and is a * symbolic link, then the symbolic link itself, not the target of --- 1191,1206 ---- * walkFileTree} method to copy a directory and all entries in the directory, * or an entire <i>file-tree</i> where required. * * <p> The {@code options} parameter may include any of the following: * ! * <table class="altrows"> ! * <caption style="display:none">Options</caption> ! * <thead> * <tr> <th>Option</th> <th>Description</th> </tr> + * </thead> + * <tbody> * <tr> * <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td> * <td> If the target file exists, then the target file is replaced if it * is not a non-empty directory. If the target file exists and is a * symbolic link, then the symbolic link itself, not the target of
*** 1213,1222 **** --- 1222,1232 ---- * then the symbolic link itself, not the target of the link, is copied. * It is implementation specific if file attributes can be copied to the * new link. In other words, the {@code COPY_ATTRIBUTES} option may be * ignored when copying a symbolic link. </td> * </tr> + * </tbody> * </table> * * <p> An implementation of this interface may support additional * implementation specific options. *
*** 1304,1315 **** * #copy copy} method in conjunction with the {@link * #walkFileTree Files.walkFileTree} utility method. * * <p> The {@code options} parameter may include any of the following: * ! * <table border=1 cellpadding=5 summary=""> * <tr> <th>Option</th> <th>Description</th> </tr> * <tr> * <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td> * <td> If the target file exists, then the target file is replaced if it * is not a non-empty directory. If the target file exists and is a * symbolic link, then the symbolic link itself, not the target of --- 1314,1329 ---- * #copy copy} method in conjunction with the {@link * #walkFileTree Files.walkFileTree} utility method. * * <p> The {@code options} parameter may include any of the following: * ! * <table class="altrows"> ! * <caption style="display:none">Options</caption> ! * <thead> * <tr> <th>Option</th> <th>Description</th> </tr> + * </thead> + * <tbody> * <tr> * <td> {@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} </td> * <td> If the target file exists, then the target file is replaced if it * is not a non-empty directory. If the target file exists and is a * symbolic link, then the symbolic link itself, not the target of
*** 1324,1333 **** --- 1338,1348 ---- * performed as an atomic file system operation then {@link * AtomicMoveNotSupportedException} is thrown. This can arise, for * example, when the target location is on a different {@code FileStore} * and would require that the file be copied, or target location is * associated with a different provider to this object. </td> + * </tbody> * </table> * * <p> An implementation of this interface may support additional * implementation specific options. *
*** 1907,1917 **** * * <p> The following examples demonstrate possible values for the {@code * attributes} parameter: * * <blockquote> ! * <table border="0" summary="Possible values"> * <tr> * <td> {@code "*"} </td> * <td> Read all {@link BasicFileAttributes basic-file-attributes}. </td> * </tr> * <tr> --- 1922,1934 ---- * * <p> The following examples demonstrate possible values for the {@code * attributes} parameter: * * <blockquote> ! * <table> ! * <caption style="display:none">Possible values</caption> ! * <tbody> * <tr> * <td> {@code "*"} </td> * <td> Read all {@link BasicFileAttributes basic-file-attributes}. </td> * </tr> * <tr>
*** 1925,1934 **** --- 1942,1952 ---- * </tr> * <tr> * <td> {@code "posix:permissions,owner,size"} </td> * <td> Reads the POSIX file permissions, owner, and file size. </td> * </tr> + * </tbody> * </table> * </blockquote> * * <p> The {@code options} array may be used to indicate how symbolic links * are handled for the case that the file is a symbolic link. By default,
< prev index next >