| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final UnixFileSystem |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final FileTypeDetector | chain(final AbstractFileTypeDetector... detectors)
Returns a |
| public void | checkAccess(Path obj, AccessMode... modes)
Implements abstract java. Checks the existence, and optionally the accessibility, of a file. |
| private void | |
| public void | copy(Path source, Path target, CopyOption... options)
Implements abstract java. Copy a file to a target file. |
| public void | createDirectory(Path obj, FileAttribute<?>... attrs)
Implements abstract java. Creates a new directory. |
| public void | createLink(Path obj1, Path obj2)
Overrides java. Creates a new link (directory entry) for an existing file. |
| public void | createSymbolicLink(Path obj1, Path obj2, FileAttribute<?>... attrs)
Overrides java. Creates a symbolic link to a target. |
| public boolean | exists(Path path, LinkOption... options)
Overrides java. Tests whether a file exists. |
| public <V extends FileAttributeView> V | getFileAttributeView(Path obj, Class<V> type, LinkOption... options)
Implements abstract java. Returns a file attribute view of a given type. |
| protected DynamicFileAttributeView | getFileAttributeView(Path obj, String name, LinkOption... options)
Implements abstract sun. Gets a DynamicFileAttributeView by name. |
| pack-priv abstract FileStore | getFileStore(UnixPath path)
Returns a FileStore to represent the file system where the given file reside. |
| public FileStore | getFileStore(Path obj)
Implements abstract java. Returns the |
| public final FileSystem | getFileSystem(URI uri)
Implements abstract java. Returns an existing |
| pack-priv FileTypeDetector | |
| public Path | getPath(URI uri)
Implements abstract java. Return a |
| public final String | getScheme()
Implements abstract java. Returns the URI scheme that identifies this provider. |
| public byte[] | getSunPathForSocketFile(Path obj)
Implements abstract sun. Returns a path name as bytes for a Unix domain socket. |
| pack-priv boolean | implDelete(Path obj, boolean failIfNotExists)
Implements abstract sun. Deletes a file. |
| public boolean | isExecutable(Path path)
Overrides sun. Tests whether a file is executable. |
| public boolean | isHidden(Path obj)
Implements abstract java. Tells whether or not a file is considered hidden. |
| public boolean | isReadable(Path path)
Overrides sun. Tests whether a file is readable. |
| public boolean | isSameFile(Path obj1, Path obj2)
Implements abstract java. Tests if two paths locate the same file. |
| public boolean | isWritable(Path path)
Overrides sun. Tests whether a file is writable. |
| private UnixFileKey | |
| public void | move(Path source, Path target, CopyOption... options)
Implements abstract java. Move or rename a file to a target file. |
| public AsynchronousFileChannel | newAsynchronousFileChannel(Path obj, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)
Overrides java. Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file. |
| public SeekableByteChannel | newByteChannel(Path obj, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
Implements abstract java. Opens or creates a file, returning a seekable byte channel to access the file. |
| public DirectoryStream | newDirectoryStream(Path obj, DirectoryStream.
Implements abstract java. Opens a directory, returning a |
| public FileChannel | newFileChannel(Path obj, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
Overrides java. Opens or creates a file for reading and/or writing, returning a file channel to access the file. |
| pack-priv abstract UnixFileSystem | |
| public final FileSystem | newFileSystem(URI uri, Map<String, ?> env)
Implements abstract java. Constructs a new |
| public <A extends BasicFileAttributes> A | readAttributes(Path file, Class<A> type, LinkOption... options)
Implements abstract java. Reads a file's attributes as a bulk operation. |
| public <A extends BasicFileAttributes> A | readAttributesIfExists(Path path, Class<A> type, LinkOption... options)
Overrides java. Reads a file's attributes as a bulk operation if it exists. |
| public Path | readSymbolicLink(Path obj1)
Overrides java. Reads the target of a symbolic link. |
| pack-priv UnixFileSystem |
| EMPTY_PATH | back to summary |
|---|---|
| private static final byte[] EMPTY_PATH | |
| theFileSystem | back to summary |
|---|---|
| private final UnixFileSystem theFileSystem | |
| UnixFileSystemProvider | back to summary |
|---|---|
public UnixFileSystemProvider()
| |
| chain | back to summary |
|---|---|
| pack-priv final FileTypeDetector chain(final AbstractFileTypeDetector... detectors) Returns a | |
| checkAccess | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public void checkAccess(Path obj, AccessMode... modes) throws IOException Implements abstract java. Doc from java. Checks the existence, and optionally the accessibility, of a file. This method may be used by the This method checks the existence of a file and that this Java virtual
machine has appropriate privileges that would allow it access the file
according to all of access modes specified in the
If the This method follows symbolic links if the file referenced by this object is a symbolic link. Depending on the implementation, this method may require to read file permissions, access control lists, or other file attributes in order to check the effective access to the file. To determine the effective access to a file may require access to several attributes and so in some implementations this method may not be atomic with respect to other file system operations.
| |||||||||
| checkUri | back to summary |
|---|---|
| private void checkUri(URI uri) | |
| copy | back to summary |
|---|---|
| public void copy(Path source, Path target, CopyOption... options) throws IOException Implements abstract java. Doc from java. Copy a file to a target file. This method works in exactly the manner
specified by the
| |
| createDirectory | back to summary |
|---|---|
| public void createDirectory(Path obj, FileAttribute<?>... attrs) throws IOException Implements abstract java. Doc from java. Creates a new directory. This method works in exactly the manner
specified by the
| |
| createLink | back to summary |
|---|---|
| public void createLink(Path obj1, Path obj2) throws IOException Overrides java. Doc from java. Creates a new link (directory entry) for an existing file. This method
works in exactly the manner specified by the The default implementation of this method throws
| |
| createSymbolicLink | back to summary |
|---|---|
| public void createSymbolicLink(Path obj1, Path obj2, FileAttribute<?>... attrs) throws IOException Overrides java. Doc from java. Creates a symbolic link to a target. This method works in exactly the
manner specified by the The default implementation of this method throws
| |
| exists | back to summary |
|---|---|
| public boolean exists(Path path, LinkOption... options) Overrides java. Doc from java. Tests whether a file exists. This method works in exactly the
manner specified by the
| |
| getFileAttributeView | back to summary |
|---|---|
| public <V extends FileAttributeView> V getFileAttributeView(Path obj, Class<V> type, LinkOption... options) Implements abstract java. Doc from java. Returns a file attribute view of a given type. This method works in
exactly the manner specified by the
| |
| getFileAttributeView | back to summary |
|---|---|
| protected DynamicFileAttributeView getFileAttributeView(Path obj, String name, LinkOption... options) Implements abstract sun. Doc from sun. Gets a DynamicFileAttributeView by name. Returns
| |
| getFileStore | back to summary |
|---|---|
| pack-priv abstract FileStore getFileStore(UnixPath path) throws IOException Returns a FileStore to represent the file system where the given file reside. | |
| getFileStore | back to summary |
|---|---|
| public FileStore getFileStore(Path obj) throws IOException Implements abstract java. Doc from java. Returns the
| |
| getFileSystem | back to summary |
|---|---|
| public final FileSystem getFileSystem(URI uri) Implements abstract java. Doc from java. Returns an existing This method returns a reference to a Once a file system created by this provider is
| |
| getFileTypeDetector | back to summary |
|---|---|
| pack-priv FileTypeDetector getFileTypeDetector() Returns a | |
| getPath | back to summary |
|---|---|
| public Path getPath(URI uri) Implements abstract java. Doc from java. Return a The exact form of the URI is file system provider dependent. In the
case of the default provider, the URI scheme is
| |
| getScheme | back to summary |
|---|---|
| public final String getScheme() Implements abstract java. Doc from java. Returns the URI scheme that identifies this provider.
| |
| getSunPathForSocketFile | back to summary |
|---|---|
| public byte[] getSunPathForSocketFile(Path obj) Implements abstract sun. Doc from sun. Returns a path name as bytes for a Unix domain socket. Different encodings may be used for these names on some platforms. If path is empty, then an empty byte[] is returned.
| |
| implDelete | back to summary |
|---|---|
| pack-priv boolean implDelete(Path obj, boolean failIfNotExists) throws IOException Implements abstract sun. Doc from sun. Deletes a file. The
| |
| isExecutable | back to summary |
|---|---|
| public boolean isExecutable(Path path) Overrides sun. Doc from sun. Tests whether a file is executable.
| |
| isHidden | back to summary |
|---|---|
| public boolean isHidden(Path obj) Implements abstract java. Doc from java. Tells whether or not a file is considered hidden. This method
works in exactly the manner specified by the This method is invoked by the
| |
| isReadable | back to summary |
|---|---|
| public boolean isReadable(Path path) Overrides sun. Doc from sun. Tests whether a file is readable.
| |
| isSameFile | back to summary |
|---|---|
| public boolean isSameFile(Path obj1, Path obj2) throws IOException Implements abstract java. Doc from java. Tests if two paths locate the same file. This method works in exactly the
manner specified by the
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable(Path path) Overrides sun. Doc from sun. Tests whether a file is writable.
| |
| lastFileKey | back to summary |
|---|---|
| private UnixFileKey lastFileKey(UnixPath path) throws UnixException | |
| move | back to summary |
|---|---|
| public void move(Path source, Path target, CopyOption... options) throws IOException Implements abstract java. Doc from java. Move or rename a file to a target file. This method works in exactly the
manner specified by the
| |
| newAsynchronousFileChannel | back to summary |
|---|---|
| public AsynchronousFileChannel newAsynchronousFileChannel(Path obj, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) throws IOException Overrides java. Doc from java. Opens or creates a file for reading and/or writing, returning an
asynchronous file channel to access the file. This method works in
exactly the manner specified by the
| |
| newByteChannel | back to summary |
|---|---|
| public SeekableByteChannel newByteChannel(Path obj, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException Implements abstract java. Doc from java. Opens or creates a file, returning a seekable byte channel to access the
file. This method works in exactly the manner specified by the
| |
| newDirectoryStream | back to summary |
|---|---|
| public DirectoryStream Implements abstract java. Doc from java. Opens a directory, returning a
| |
| newFileChannel | back to summary |
|---|---|
| public FileChannel newFileChannel(Path obj, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException Overrides java. Doc from java. Opens or creates a file for reading and/or writing, returning a file
channel to access the file. This method works in exactly the manner
specified by the
| |
| newFileSystem | back to summary |
|---|---|
| pack-priv abstract UnixFileSystem newFileSystem(String dir) Constructs a new file system using the given default directory. | |
| newFileSystem | back to summary |
|---|---|
| public final FileSystem newFileSystem(URI uri, Map<String, ?> env) Implements abstract java. Doc from java. Constructs a new The This method throws
| |
| readAttributes | back to summary |
|---|---|
| public <A extends BasicFileAttributes> A readAttributes(Path file, Class<A> type, LinkOption... options) throws IOException Implements abstract java. Doc from java. Reads a file's attributes as a bulk operation. This method works in
exactly the manner specified by the
| |
| readAttributesIfExists | back to summary |
|---|---|
| public <A extends BasicFileAttributes> A readAttributesIfExists(Path path, Class<A> type, LinkOption... options) throws IOException Overrides java. Doc from java. Reads a file's attributes as a bulk operation if it exists. The The It is implementation specific if all file attributes are read as an atomic operation with respect to other file system operations.
| |
| readSymbolicLink | back to summary |
|---|---|
| public Path readSymbolicLink(Path obj1) throws IOException Overrides java. Doc from java. Reads the target of a symbolic link. This method works in exactly the
manner specified by the The default implementation of this method throws
| |
| theFileSystem | back to summary |
|---|---|
| pack-priv UnixFileSystem theFileSystem() | |