Implementation Note
This class needs to maintain JDK 8 source compatibility. It is used internally in the JDK to implement jimage/jrtfs access, but also compiled and delivered as part of the jrtfs.jar to support access to the jimage file provided by the shipped JDK by tools running on JDK 8.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final LinkOption[] | |
| private final JrtPath |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Object | |
| pack-priv static <V extends FileAttributeView> V | |
| pack-priv static JrtFileAttributeView | |
| public String | name()
Implements java. Returns the name of the attribute view. |
| public JrtFileAttributes | readAttributes()
Implements java. Reads the basic file attributes as a bulk operation. |
| pack-priv static Map | |
| pack-priv static 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. |
| isJrtView | back to summary |
|---|---|
| private final boolean isJrtView | |
| options | back to summary |
|---|---|
| private final LinkOption[] options | |
| path | back to summary |
|---|---|
| private final JrtPath path | |
| JrtFileAttributeView | back to summary |
|---|---|
| private JrtFileAttributeView(JrtPath path, boolean isJrtView, LinkOption... options) | |
| attribute | back to summary |
|---|---|
| pack-priv static Object attribute(JrtFileAttributeView. | |
| get | back to summary |
|---|---|
pack-priv static <V extends FileAttributeView> V get(JrtPath path, Class<V> type, LinkOption... options)
| |
| get | back to summary |
|---|---|
| pack-priv static JrtFileAttributeView get(JrtPath path, String type, LinkOption... options) | |
| 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 JrtFileAttributes 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 static Map | |
| setAttribute | back to summary |
|---|---|
| pack-priv static void setAttribute(JrtPath path, String attribute, Object value) 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 JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. | |
| public static final JrtFileAttributeView. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static JrtFileAttributeView. | |
| public static JrtFileAttributeView. |
| compressedSize | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| creationTime | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| extension | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| fileKey | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| isDirectory | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| isOther | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| isRegularFile | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| isSymbolicLink | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| lastAccessTime | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| lastModifiedTime | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| size | back to summary |
|---|---|
| public static final JrtFileAttributeView. | |
| AttrID | back to summary |
|---|---|
| private AttrID() | |
| valueOf | back to summary |
|---|---|
| public static JrtFileAttributeView. | |
| values | back to summary |
|---|---|
| public static JrtFileAttributeView. | |