| Modifier and Type | Field and Description |
|---|---|
| private final FileSystem | |
| private final Path |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes this file system. |
| protected RootedPath | create(String root, List<String> names)
Implements abstract org.
|
| public Iterable | getFileStores()
Overrides org. Returns an object to iterate over the underlying file stores. |
| public Path | |
| public FileSystem | |
| public UserPrincipalLookupService | getUserPrincipalLookupService()
Implements abstract java. Returns the |
| protected boolean | |
| public boolean | isOpen()
Implements abstract java. Tells whether or not this file system is open. |
| public boolean | isReadOnly()
Overrides org. Tells whether or not this file system allows only read-only access to its file stores. |
| public RootedFileSystemProvider | provider()
Overrides org. Returns the provider that created this file system. |
| public Set | supportedFileAttributeViews()
Implements abstract java. Returns the set of the |
| public String |
| rootFs | back to summary |
|---|---|
| private final FileSystem rootFs | |
| rootPath | back to summary |
|---|---|
| private final Path rootPath | |
| RootedFileSystem | back to summary |
|---|---|
| public RootedFileSystem(RootedFileSystemProvider fileSystemProvider, Path root, Map<String, ?> env) | |
| 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
| |
| create | back to summary |
|---|---|
| protected RootedPath create(String root, List<String> names) Implements abstract org.
| |
| getFileStores | back to summary |
|---|---|
| public Iterable Overrides org. 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); } | |
| getRoot | back to summary |
|---|---|
| public Path getRoot() | |
| getRootFileSystem | back to summary |
|---|---|
| public FileSystem getRootFileSystem() | |
| getUserPrincipalLookupService | back to summary |
|---|---|
| public 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"));
| |
| hostFsHasWindowsSeparator | back to summary |
|---|---|
| protected boolean hostFsHasWindowsSeparator() Overrides org.
| |
| 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 boolean isReadOnly() Overrides org. Doc from java. Tells whether or not this file system allows only read-only access to its file stores.
| |
| provider | back to summary |
|---|---|
| public RootedFileSystemProvider provider() Overrides org. Doc from java. Returns the provider that created this file system.
| |
| supportedFileAttributeViews | back to summary |
|---|---|
| public Set Implements abstract java. Doc from java. Returns the set of the The The | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |