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 | Field and Description |
|---|---|
| private final ImageReader. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the compressed resource size for compressed resources.Compressed resource file. |
| public FileTime | creationTime()
Implements java. Returns the creation time. |
| public String | |
| public Object | fileKey()
Implements java. Returns an object that uniquely identifies the given file, or |
| public boolean | isDirectory()
Implements java. Tells whether the file is a directory. |
| public boolean | isOther()
Implements java. Tells whether the file is something other than a regular file, directory, or symbolic link. |
| public boolean | isRegularFile()
Implements java. Tells whether the file is a regular file with opaque content. |
| public boolean | isSymbolicLink()
Implements java. Tells whether the file is a symbolic link. |
| public FileTime | lastAccessTime()
Implements java. Returns the time of last access. |
| public FileTime | lastModifiedTime()
Implements java. Returns the time of last modification. |
| public long | size()
Implements java. Returns the size of the file (in bytes). |
| public final String |
| node | back to summary |
|---|---|
| private final ImageReader. | |
| JrtFileAttributes | back to summary |
|---|---|
| pack-priv JrtFileAttributes(ImageReader. | |
| compressedSize | back to summary |
|---|---|
| public long compressedSize() Compressed resource file. If not available or not applicable, 0L is returned.
| |
| creationTime | back to summary |
|---|---|
| public FileTime creationTime() Implements java. Doc from java. Returns the creation time. The creation time is the time that the file was created. If the file system implementation does not support a time stamp
to indicate the time when the file was created then this method returns
an implementation specific default value, typically the
| |
| extension | back to summary |
|---|---|
| public String extension() "file" extension of a file resource.
| |
| fileKey | back to summary |
|---|---|
| public Object fileKey() Implements java. Doc from java. Returns an object that uniquely identifies the given file, or The file key returned by this method can only be guaranteed to be unique if the file system and files remain static. Whether a file system re-uses identifiers after a file is deleted is implementation dependent and therefore unspecified. File keys returned by this method can be compared for equality and are
suitable for use in collections. If the file system and files remain static,
and two files are the
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements java. Doc from java. Tells whether the file is a directory.
| |
| isOther | back to summary |
|---|---|
| public boolean isOther() Implements java. Doc from java. Tells whether the file is something other than a regular file, directory, or symbolic link.
| |
| isRegularFile | back to summary |
|---|---|
| public boolean isRegularFile() Implements java. Doc from java. Tells whether the file is a regular file with opaque content.
| |
| isSymbolicLink | back to summary |
|---|---|
| public boolean isSymbolicLink() Implements java. Doc from java. Tells whether the file is a symbolic link.
| |
| lastAccessTime | back to summary |
|---|---|
| public FileTime lastAccessTime() Implements java. Doc from java. Returns the time of last access. If the file system implementation does not support a time stamp
to indicate the time of last access then this method returns
an implementation specific default value, typically the
| |
| lastModifiedTime | back to summary |
|---|---|
| public FileTime lastModifiedTime() Implements java. Doc from java. Returns the time of last modification. If the file system implementation does not support a time stamp
to indicate the time of last modification then this method returns an
implementation specific default value, typically a
| |
| size | back to summary |
|---|---|
| public long size() Implements java. Doc from java. Returns the size of the file (in bytes). The size may differ from the
actual size on the file system due to compression, support for sparse
files, or other reasons. The size of files that are not
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |