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 SystemImage | |
| private volatile boolean | |
| private volatile boolean | |
| private final JrtFileSystemProvider | |
| private final JrtPath | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ImageReader. | |
| pack-priv static void | |
| pack-priv synchronized void | |
| public void | close()
Implements abstract java. Implements java. Closes this file system. |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv boolean | |
| pack-priv static boolean | |
| pack-priv JrtFileAttributes | |
| pack-priv byte[] | |
| pack-priv final JrtFileStore | |
| public final Iterable | getFileStores()
Implements abstract java. Returns an object to iterate over the underlying file stores. |
| public JrtPath | getPath(String first, String... more)
Implements abstract java. Converts a path string, or a sequence of strings that when joined form
a path string, to a |
| public PathMatcher | getPathMatcher(String syntaxAndInput)
Implements abstract java. Returns a |
| public Iterable | getRootDirectories()
Implements abstract java. Returns an object to iterate over the paths of the root directories. |
| pack-priv final JrtPath | |
| public final String | getSeparator()
Implements abstract java. Returns the name separator, represented as a string. |
| public final UserPrincipalLookupService | getUserPrincipalLookupService()
Implements abstract java. Returns the |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | isOpen()
Implements abstract java. Tells whether or not this file system is open. |
| public final boolean | isReadOnly()
Implements abstract java. Tells whether or not this file system allows only read-only access to its file stores. |
| pack-priv boolean | |
| pack-priv Iterator | Returns: iterator for child paths of the given directory pathname of the directory whose content is listed path, DirectoryStream.returns the list of child paths of the given directory "path" |
| private ImageReader. | |
| private ImageReader. | |
| pack-priv final SeekableByteChannel | |
| pack-priv final FileChannel | |
| pack-priv final InputStream | |
| pack-priv final OutputStream | |
| public final WatchService | newWatchService()
Implements abstract java. Constructs a new |
| public FileSystemProvider | provider()
Implements abstract java. Returns the provider that created this file system. |
| pack-priv static ReadOnlyFileSystemException | |
| pack-priv JrtPath | |
| pack-priv final void | |
| public final Set | supportedFileAttributeViews()
Implements abstract java. Returns the set of the |
| pack-priv JrtPath | |
| public final String |
| image | back to summary |
|---|---|
| private SystemImage image | |
| isClosable | back to summary |
|---|---|
| private volatile boolean isClosable | |
| isOpen | back to summary |
|---|---|
| private volatile boolean isOpen | |
| provider | back to summary |
|---|---|
| private final JrtFileSystemProvider provider | |
| rootPath | back to summary |
|---|---|
| private final JrtPath rootPath | |
| supportedFileAttributeViews | back to summary |
|---|---|
| private static final Set<String> supportedFileAttributeViews | |
| JrtFileSystem | back to summary |
|---|---|
| pack-priv JrtFileSystem(JrtFileSystemProvider provider, Map<String, ?> env) throws IOException | |
| checkNode | back to summary |
|---|---|
| pack-priv ImageReader. | |
| checkOptions | back to summary |
|---|---|
| pack-priv static void checkOptions(Set<? extends OpenOption> options) | |
| cleanup | back to summary |
|---|---|
| pack-priv synchronized void cleanup() throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes this file system. After a file system is closed then all subsequent access to the file
system, either by methods defined by this class or on objects associated
with this file system, throw Closing a file system will close all open
| |
| copyFile | back to summary |
|---|---|
| pack-priv final void copyFile(boolean deletesrc, JrtPath srcPath, JrtPath dstPath, CopyOption... options) throws IOException | |
| createDirectory | back to summary |
|---|---|
| pack-priv final void createDirectory(JrtPath jrtPath, FileAttribute<?>... attrs) throws IOException | |
| deleteFile | back to summary |
|---|---|
| pack-priv final void deleteFile(JrtPath jrtPath, boolean failIfNotExists) throws IOException | |
| ensureOpen | back to summary |
|---|---|
| pack-priv final void ensureOpen() throws IOException | |
| exists | back to summary |
|---|---|
| pack-priv boolean exists(JrtPath path) throws IOException | |
| followLinks | back to summary |
|---|---|
| pack-priv static boolean followLinks(LinkOption... options) | |
| getFileAttributes | back to summary |
|---|---|
| pack-priv JrtFileAttributes getFileAttributes(JrtPath path, LinkOption... options) throws IOException | |
| getFileContent | back to summary |
|---|---|
| pack-priv byte[] getFileContent(JrtPath path) throws IOException | |
| getFileStore | back to summary |
|---|---|
| pack-priv final JrtFileStore getFileStore(JrtPath path) | |
| getFileStores | back to summary |
|---|---|
| public final Iterable Implements abstract java. Doc from java. Returns an object to iterate over the underlying file stores. The elements of the returned iterator are the Usage Example: Suppose we want to print the space usage for all file stores: for (FileStore store: FileSystems.getDefault().getFileStores()) { long total = store.getTotalSpace() / 1024; long used = (store.getTotalSpace() - store.getUnallocatedSpace()) / 1024; long avail = store.getUsableSpace() / 1024; System.out.format("%-20s %12d %12d %12d%n", store, total, used, avail); }
| |
| getPath | back to summary |
|---|---|
| public JrtPath getPath(String first, String... more) Implements abstract java. Doc from java. Converts a path string, or a sequence of strings that when joined form
a path string, to a The parsing and conversion to a path object is inherently
implementation dependent. In the simplest case, the path string is rejected,
and In the case of the default provider, path strings are parsed based on the definition of paths at the platform or virtual file system level. For example, an operating system may not allow specific characters to be present in a file name, but a specific underlying file store may impose different or additional restrictions on the set of legal characters. This method throws
| |
| getPathMatcher | back to summary | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public PathMatcher getPathMatcher(String syntaxAndInput) Implements abstract java. Doc from java. Returns a where syntax is the non-empty name of the syntax, pattern is a possibly-empty pattern string, andsyntax:pattern ':' stands for itself.
A When the syntax is "
The following rules are used to interpret glob patterns:
When the syntax is " For both the glob and regex syntaxes, the matching details, such as whether the matching is case sensitive, are implementation-dependent and therefore not specified.
| |||||||||||||||||
| getRootDirectories | back to summary |
|---|---|
| public Iterable Implements abstract java. Doc from java. Returns an object to iterate over the paths of the root directories. A file system provides access to a file store that may be composed of a number of distinct file hierarchies, each with its own top-level root directory. Each element in the returned iterator corresponds to the root directory of a distinct file hierarchy. The order of the elements is not defined. The file hierarchies may change during the lifetime of the ava virtual machine. For example, in some implementations, the insertion of removable media may result in the creation of a new file hierarchy with its own top-level directory. There is no guarantee that a root directory can be accessed.
| |
| getRootPath | back to summary |
|---|---|
| pack-priv final JrtPath getRootPath() | |
| getSeparator | back to summary |
|---|---|
| public final String getSeparator() Implements abstract java. Doc from java. Returns the name separator, represented as a string. The name separator is used to separate names in a path string. An
implementation may support multiple name separators in which case this
method returns an implementation specific default name separator.
This separator is used when creating path strings by invoking the In the case of the default provider, this method returns the same
separator as
| |
| getUserPrincipalLookupService | back to summary |
|---|---|
| public final UserPrincipalLookupService getUserPrincipalLookupService() Implements abstract java. Doc from java. Returns the Usage Example: Suppose we want to make "joe" the owner of a file: UserPrincipalLookupService lookupService = FileSystems.getDefault().getUserPrincipalLookupService(); Files.setOwner(path, lookupService.lookupPrincipalByName("joe"));
| |
| isDirectory | back to summary |
|---|---|
| pack-priv boolean isDirectory(JrtPath path, boolean resolveLinks) throws IOException | |
| isLink | back to summary |
|---|---|
| pack-priv boolean isLink(JrtPath path) throws IOException | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements abstract java. Doc from java. Tells whether or not this file system is open. File systems created by the default provider are always open.
| |
| isReadOnly | back to summary |
|---|---|
| public final boolean isReadOnly() Implements abstract java. Doc from java. Tells whether or not this file system allows only read-only access to its file stores.
| |
| isSameFile | back to summary |
|---|---|
| pack-priv boolean isSameFile(JrtPath path1, JrtPath path2) throws IOException | |
| iteratorOf | back to summary |
|---|---|
| pack-priv Iterator returns the list of child paths of the given directory "path" | |
| lookup | back to summary |
|---|---|
| private ImageReader. | |
| lookupSymbolic | back to summary |
|---|---|
| private ImageReader. | |
| newByteChannel | back to summary |
|---|---|
| pack-priv final SeekableByteChannel newByteChannel(JrtPath path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException | |
| newFileChannel | back to summary |
|---|---|
| pack-priv final FileChannel newFileChannel(JrtPath path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException | |
| newInputStream | back to summary |
|---|---|
| pack-priv final InputStream newInputStream(JrtPath path) throws IOException | |
| newOutputStream | back to summary |
|---|---|
| pack-priv final OutputStream newOutputStream(JrtPath jrtPath, OpenOption... options) throws IOException | |
| newWatchService | back to summary |
|---|---|
| public final WatchService newWatchService() Implements abstract java. Doc from java. Constructs a new This method constructs a new watch service that may be used to watch registered objects for changes and events.
| |
| provider | back to summary |
|---|---|
| public FileSystemProvider provider() Implements abstract java. Doc from java. Returns the provider that created this file system.
| |
| readOnly | back to summary |
|---|---|
| pack-priv static ReadOnlyFileSystemException readOnly() | |
| resolveLink | back to summary |
|---|---|
| pack-priv JrtPath resolveLink(JrtPath path) throws IOException | |
| setTimes | back to summary |
|---|---|
| pack-priv final void setTimes(JrtPath jrtPath, FileTime mtime, FileTime atime, FileTime ctime) throws IOException | |
| supportedFileAttributeViews | back to summary |
|---|---|
| public final Set Implements abstract java. Doc from java. Returns the set of the The The
| |
| toRealPath | back to summary |
|---|---|
| pack-priv JrtPath toRealPath(JrtPath path, LinkOption... options) throws IOException | |
| 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-
| |