| Modifier and Type | Class and Description |
|---|---|
| private class | UnixFileSystem.
Iterator returned by getFileStores method. |
| protected static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private static volatile boolean | |
| private static final String | |
| private static final int | |
| private final boolean | |
| private final UnixFileSystemProvider | |
| private static final String | |
| private final UnixPath |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | bufferedCopy(int
destination file descriptor dst, int source file descriptor src, long the address of the temporary direct buffer's array address, int the size of the temporary direct buffer's array size, long address to check for cancellation
(a non-zero value written to this address indicates cancel) addressToPollForCancel)Copies data between file descriptors |
| private static native void | |
| public final void | close()
Implements abstract java. Implements java. Closes this file system. |
| pack-priv Pattern | |
| pack-priv void | |
| private void | copyDirectory(UnixPath source, UnixFileAttributes attrs, UnixPath target, UnixFileSystem.
|
| pack-priv void | copyFile(UnixPath source, UnixFileAttributes attrs, UnixPath target, UnixFileSystem.
|
| private void | |
| pack-priv void | copyNonPosixAttributes(int
Open file descriptor to source file sfd, int Open file descriptor to target file tfd)Copies non-POSIX attributes from the source to target file. |
| private void | |
| pack-priv byte[] | |
| pack-priv int | Returns: 0 on success, IOStatus.UNAVAILABLE if the platform function would block, IOStatus.UNSUPPORTED_CASE if the call does not work with the given parameters, or IOStatus.UNSUPPORTED if direct copying is not supported on this platformdestination file descriptor dst, int source file descriptor src, long address to check for cancellation
(a non-zero value written to this address indicates cancel) addressToPollForCancel)Copies data between file descriptors |
| pack-priv static void | |
| pack-priv abstract FileStore | getFileStore(UnixMountEntry entry)
Returns a FileStore to represent the file system for the given mount mount. |
| public final Iterable | getFileStores()
Implements abstract java. Returns an object to iterate over the underlying file stores. |
| pack-priv abstract Iterable | |
| public final Path | 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 final Iterable | getRootDirectories()
Implements abstract java. Unix systems only have a single root directory (/) |
| 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 | |
| public final 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. |
| private static long | |
| pack-priv void | |
| pack-priv boolean | |
| public final FileSystemProvider | provider()
Implements abstract java. Returns the provider that created this file system. |
| pack-priv UnixPath | |
| pack-priv static List | |
| private static int |
| defaultDirectory | back to summary |
|---|---|
| private final byte[] defaultDirectory | |
| directCopyNotSupported | back to summary |
|---|---|
| private static volatile boolean directCopyNotSupported | |
| GLOB_SYNTAX | back to summary |
|---|---|
| private static final String GLOB_SYNTAX | |
| MIN_BUFFER_SIZE | back to summary |
|---|---|
| private static final int MIN_BUFFER_SIZE | |
| needToResolveAgainstDefaultDirectory | back to summary |
|---|---|
| private final boolean needToResolveAgainstDefaultDirectory | |
| provider | back to summary |
|---|---|
| private final UnixFileSystemProvider provider | |
| REGEX_SYNTAX | back to summary |
|---|---|
| private static final String REGEX_SYNTAX | |
| rootDirectory | back to summary |
|---|---|
| private final UnixPath rootDirectory | |
| UnixFileSystem | back to summary |
|---|---|
| pack-priv UnixFileSystem(UnixFileSystemProvider provider, String dir) | |
| bufferedCopy | back to summary |
|---|---|
| pack-priv void bufferedCopy(int dst, int src, long address, int size, long addressToPollForCancel) throws UnixException Copies data between file descriptors
| |
| bufferedCopy0 | back to summary |
|---|---|
| private static native void bufferedCopy0(int dst, int src, long address, int size, long addressToPollForCancel) throws UnixException | |
| close | back to summary |
|---|---|
| public final 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
| |
| compilePathMatchPattern | back to summary |
|---|---|
| pack-priv Pattern compilePathMatchPattern(String expr) | |
| copy | back to summary |
|---|---|
| pack-priv void copy(final UnixPath source, final UnixPath target, CopyOption... options) throws IOException | |
| copyDirectory | back to summary |
|---|---|
| private void copyDirectory(UnixPath source, UnixFileAttributes attrs, UnixPath target, UnixFileSystem. | |
| copyFile | back to summary |
|---|---|
| pack-priv void copyFile(UnixPath source, UnixFileAttributes attrs, UnixPath target, UnixFileSystem. | |
| copyLink | back to summary |
|---|---|
| private void copyLink(UnixPath source, UnixFileAttributes attrs, UnixPath target, UnixFileSystem. | |
| copyNonPosixAttributes | back to summary |
|---|---|
| pack-priv void copyNonPosixAttributes(int sfd, int tfd) Copies non-POSIX attributes from the source to target file. Copying a file preserving attributes, or moving a file, will preserve the file owner/group/permissions/timestamps but it does not preserve other non-POSIX attributes. This method is invoked by the copy or move operation to preserve these attributes. It should copy extended attributes, ACLs, or other attributes.
| |
| copySpecial | back to summary |
|---|---|
| private void copySpecial(UnixPath source, UnixFileAttributes attrs, UnixPath target, UnixFileSystem. | |
| defaultDirectory | back to summary |
|---|---|
| pack-priv byte[] defaultDirectory() | |
| directCopy | back to summary |
|---|---|
| pack-priv int directCopy(int dst, int src, long addressToPollForCancel) throws UnixException Copies data between file descriptors
| |
| ensureEmptyDir | back to summary |
|---|---|
| pack-priv static void ensureEmptyDir(UnixPath dir) throws IOException | |
| getFileStore | back to summary |
|---|---|
| pack-priv abstract FileStore getFileStore(UnixMountEntry entry) throws IOException Returns a FileStore to represent the file system for the given mount mount. | |
| 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); }
| |
| getMountEntries | back to summary |
|---|---|
| pack-priv abstract Iterable Returns object to iterate over entries in mounttab or equivalent | |
| getPath | back to summary |
|---|---|
| public final Path 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 final Iterable Implements abstract java. Unix systems only have a single root directory (/)
| |
| 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"));
| |
| isCaseInsensitiveAndPreserving | back to summary |
|---|---|
| pack-priv boolean isCaseInsensitiveAndPreserving() | |
| isOpen | back to summary |
|---|---|
| public final 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.
| |
| lcm | back to summary |
|---|---|
| private static long lcm(long x, long y) | |
| move | back to summary |
|---|---|
| pack-priv void move(UnixPath source, UnixPath target, CopyOption... options) throws IOException | |
| needToResolveAgainstDefaultDirectory | back to summary |
|---|---|
| pack-priv boolean needToResolveAgainstDefaultDirectory() | |
| provider | back to summary |
|---|---|
| public final FileSystemProvider provider() Implements abstract java. Doc from java. Returns the provider that created this file system.
| |
| rootDirectory | back to summary |
|---|---|
| pack-priv UnixPath rootDirectory() | |
| standardFileAttributeViews | back to summary |
|---|---|
| pack-priv static List | |
| temporaryBufferSize | back to summary |
|---|---|
| private static int temporaryBufferSize(UnixPath source, UnixPath target) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private FileStore |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized boolean | |
| public synchronized FileStore | |
| private FileStore | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| entries | back to summary |
|---|---|
| private final Iterator<UnixMountEntry> entries | |
| next | back to summary |
|---|---|
| private FileStore next | |
| FileStoreIterator | back to summary |
|---|---|
| pack-priv FileStoreIterator() | |
| hasNext | back to summary |
|---|---|
| public synchronized boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public synchronized FileStore next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| readNext | back to summary |
|---|---|
| private FileStore readNext() | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static UnixFileSystem. | |
| pack-priv static UnixFileSystem. |
| atomicMove | back to summary |
|---|---|
| pack-priv boolean atomicMove | |
| copyBasicAttributes | back to summary |
|---|---|
| pack-priv boolean copyBasicAttributes | |
| copyNonPosixAttributes | back to summary |
|---|---|
| pack-priv boolean copyNonPosixAttributes | |
| copyPosixAttributes | back to summary |
|---|---|
| pack-priv boolean copyPosixAttributes | |
| failIfUnableToCopyBasic | back to summary |
|---|---|
| pack-priv boolean failIfUnableToCopyBasic | |
| failIfUnableToCopyNonPosix | back to summary |
|---|---|
| pack-priv boolean failIfUnableToCopyNonPosix | |
| failIfUnableToCopyPosix | back to summary |
|---|---|
| pack-priv boolean failIfUnableToCopyPosix | |
| followLinks | back to summary |
|---|---|
| pack-priv boolean followLinks | |
| interruptible | back to summary |
|---|---|
| pack-priv boolean interruptible | |
| replaceExisting | back to summary |
|---|---|
| pack-priv boolean replaceExisting | |
| Flags | back to summary |
|---|---|
| protected Flags() | |
| fromCopyOptions | back to summary |
|---|---|
| pack-priv static UnixFileSystem. | |
| fromMoveOptions | back to summary |
|---|---|
| pack-priv static UnixFileSystem. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final UserPrincipalLookupService |
| Access | Constructor and Description |
|---|---|
| private |
| instance | back to summary |
|---|---|
| pack-priv static final UserPrincipalLookupService instance | |
| LookupService | back to summary |
|---|---|
| private LookupService() | |