< prev index next >

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

Print this page

        

*** 1921,1954 **** * with respect to other file system operations. * * <p> The following examples demonstrate possible values for the {@code * attributes} parameter: * ! * <blockquote> ! * <table class="borderless"> * <caption style="display:none">Possible values</caption> * <tbody> * <tr> ! * <td> {@code "*"} </td> * <td> Read all {@link BasicFileAttributes basic-file-attributes}. </td> * </tr> * <tr> ! * <td> {@code "size,lastModifiedTime,lastAccessTime"} </td> * <td> Reads the file size, last modified time, and last access time * attributes. </td> * </tr> * <tr> ! * <td> {@code "posix:*"} </td> * <td> Read all {@link PosixFileAttributes POSIX-file-attributes}. </td> * </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, * symbolic links are followed and the file attribute of the final target * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS --- 1921,1957 ---- * with respect to other file system operations. * * <p> The following examples demonstrate possible values for the {@code * attributes} parameter: * ! * <table class="striped" style="text-align: left; margin-left:2em"> * <caption style="display:none">Possible values</caption> + * <thead> + * <tr> + * <th scope="col">Example + * <th scope="col">Description + * </thead> * <tbody> * <tr> ! * <th scope="row"> {@code "*"} </th> * <td> Read all {@link BasicFileAttributes basic-file-attributes}. </td> * </tr> * <tr> ! * <th scope="row"> {@code "size,lastModifiedTime,lastAccessTime"} </th> * <td> Reads the file size, last modified time, and last access time * attributes. </td> * </tr> * <tr> ! * <th scope="row"> {@code "posix:*"} </th> * <td> Read all {@link PosixFileAttributes POSIX-file-attributes}. </td> * </tr> * <tr> ! * <th scope="row"> {@code "posix:permissions,owner,size"} </th> * <td> Reads the POSIX file permissions, owner, and file size. </td> * </tr> * </tbody> * </table> * * <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, * symbolic links are followed and the file attribute of the final target * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS
< prev index next >