| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| pack-priv final ZipPath |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | |
| public String | name()
Implements java. Returns the name of the attribute view. |
| public BasicFileAttributes | readAttributes()
Implements java. Reads the basic file attributes as a bulk operation. |
| pack-priv Map | |
| pack-priv void | |
| public void | |
| public void | setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime)
Implements java. Updates any or all of the file's last modified time, last access time, and create time attributes. |
| isZipView | back to summary |
|---|---|
| private final boolean isZipView | |
| path | back to summary |
|---|---|
| pack-priv final ZipPath path | |
| ZipFileAttributeView | back to summary |
|---|---|
| pack-priv ZipFileAttributeView(ZipPath path, boolean isZipView) | |
| attribute | back to summary |
|---|---|
| pack-priv Object attribute(ZipFileAttributeView. | |
| name | back to summary |
|---|---|
| public String name() Implements java. Doc from java. Returns the name of the attribute view. Attribute views of this type
have the name
| |
| readAttributes | back to summary |
|---|---|
| public BasicFileAttributes readAttributes() throws IOException Implements java. Doc from java. Reads the basic file attributes as a bulk operation. It is implementation specific if all file attributes are read as an atomic operation with respect to other file system operations.
| |
| readAttributes | back to summary |
|---|---|
| pack-priv Map | |
| setAttribute | back to summary |
|---|---|
pack-priv void setAttribute(String attribute, Object value) throws IOException
| |
| setPermissions | back to summary |
|---|---|
| public void setPermissions(Set<PosixFilePermission> perms) throws IOException | |
| setTimes | back to summary |
|---|---|
| public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException Implements java. Doc from java. Updates any or all of the file's last modified time, last access time, and create time attributes. This method updates the file's timestamp attributes. The values are
converted to the epoch and precision supported by the file system.
Converting from finer to coarser granularities results in precision loss.
The behavior of this method when attempting to set a timestamp that is
not supported or to a value that is outside the range supported by the
underlying file store is not defined. It may or not fail by throwing an
If any of the Usage Example: Suppose we want to change a file's last access time. Path path = ... FileTime time = ... Files.getFileAttributeView(path, BasicFileAttributeView.class).setTimes(null, time, null);
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. | |
| public static final ZipFileAttributeView. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ZipFileAttributeView. | |
| public static ZipFileAttributeView. |
| compressedSize | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| crc | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| creationTime | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| fileKey | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| group | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| isDirectory | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| isOther | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| isRegularFile | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| isSymbolicLink | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| lastAccessTime | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| lastModifiedTime | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| method | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| owner | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| permissions | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| size | back to summary |
|---|---|
| public static final ZipFileAttributeView. | |
| AttrID | back to summary |
|---|---|
| private AttrID() | |
| valueOf | back to summary |
|---|---|
| public static ZipFileAttributeView. | |
| values | back to summary |
|---|---|
| public static ZipFileAttributeView. | |