FileSystemProvider that has no files of any type.
| Modifier and Type | Field and Description |
|---|---|
| public static final NoneFileSystemProvider | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkAccess(Path
the path to the file to check path, AccessMode... The access modes to check; may have zero elements modes)Implements abstract java. Checks the existence, and optionally the accessibility, of a file. |
| public void | copy(Path
the path to the file to copy source, Path the path to the target file target, CopyOption... options specifying how the copy should be done options)Implements abstract java. Copy a file to a target file. |
| public void | createDirectory(Path
the directory to create dir, FileAttribute<?>... an optional list of file attributes to set atomically when
creating the directory attrs)Implements abstract java. Creates a new directory. |
| public void | delete(Path
the path to the file to delete path)Implements abstract java. Deletes a file. |
| public <V extends FileAttributeView> V | getFileAttributeView(Path
the path to the file path, Class<V> the type, LinkOption... Class object corresponding to the file attribute viewoptions indicating how symbolic links are handled options)Implements abstract java. Returns a file attribute view of a given type. |
| public FileStore | getFileStore(Path
the path to the file path)Implements abstract java. Returns the |
| public FileSystem | getFileSystem(URI
URI reference uri)Implements abstract java. Returns an existing |
| public Path | getPath(URI
The URI to convert uri)Implements abstract java. Return a |
| public String | getScheme()
Implements abstract java. Returns the URI scheme that identifies this provider. |
| public boolean | isHidden(Path
the path to the file to test path)Implements abstract java. Tells whether or not a file is considered hidden. |
| public boolean | isSameFile(Path
one path to the file path1, Path the other path path2)Implements abstract java. Tests if two paths locate the same file. |
| public void | move(Path
the path to the file to move source, Path the path to the target file target, CopyOption... options specifying how the move should be done options)Implements abstract java. Move or rename a file to a target file. |
| public SeekableByteChannel | newByteChannel(Path
the path to the file to open or create path, Set<? extends OpenOption> options specifying how the file is opened options, FileAttribute<?>... an optional list of file attributes to set atomically when
creating the file attrs)Implements abstract java. Opens or creates a file, returning a seekable byte channel to access the file. |
| public DirectoryStream | newDirectoryStream(Path
the path to the directory dir, DirectoryStream.the directory stream filter filterImplements abstract java. Opens a directory, returning a |
| public FileSystem | newFileSystem(URI
URI reference uri, Map<String, ?> A map of provider specific properties to configure the file system;
may be empty env)Implements abstract java. Constructs a new |
| public <A extends BasicFileAttributes> A | readAttributes(Path
the path to the file path, Class<A> the type, LinkOption... Class of the file attributes required
to readoptions indicating how symbolic links are handled options)Implements abstract java. Reads a file's attributes as a bulk operation. |
| public Map | readAttributes(Path
the path to the file path, String the attributes to read attributes, LinkOption... options indicating how symbolic links are handled options)Implements abstract java. Reads a set of file attributes as a bulk operation. |
| public void | setAttribute(Path
the path to the file path, String the attribute to set attribute, Object the attribute value value, LinkOption... options indicating how symbolic links are handled options)Implements abstract java. Sets the value of a file attribute. |
| INSTANCE | back to summary |
|---|---|
| public static final NoneFileSystemProvider INSTANCE | |
| SCHEME | back to summary |
|---|---|
| public static final String SCHEME | |
| NoneFileSystemProvider | back to summary |
|---|---|
| public NoneFileSystemProvider() | |
| checkAccess | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public void checkAccess(Path path, 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.
| |||||||||
| 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 dir, FileAttribute<?>... attrs) throws IOException Implements abstract java. Doc from java. Creates a new directory. This method works in exactly the manner
specified by the
| |
| delete | back to summary |
|---|---|
| public void delete(Path path) throws IOException Implements abstract java. Doc from java. Deletes a file. This method works in exactly the manner specified by the
| |
| getFileAttributeView | back to summary |
|---|---|
| public <V extends FileAttributeView> V getFileAttributeView(Path path, 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
| |
| getFileStore | back to summary |
|---|---|
| public FileStore getFileStore(Path path) throws IOException Implements abstract java. Doc from java. Returns the
| |
| getFileSystem | back to summary |
|---|---|
| public 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
| |
| 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 String getScheme() Implements abstract java. Doc from java. Returns the URI scheme that identifies this provider. | |
| isHidden | back to summary |
|---|---|
| public boolean isHidden(Path path) throws IOException 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
| |
| isSameFile | back to summary |
|---|---|
| public boolean isSameFile(Path path1, Path path2) 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
| |
| 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
| |
| newByteChannel | back to summary |
|---|---|
| public SeekableByteChannel newByteChannel(Path path, 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
| |
| newFileSystem | back to summary |
|---|---|
| public FileSystem newFileSystem(URI uri, Map<String, ?> env) throws IOException Implements abstract java. Doc from java. Constructs a new The This method throws
| |
| readAttributes | back to summary |
|---|---|
| public <A extends BasicFileAttributes> A readAttributes(Path path, 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
| |
| readAttributes | back to summary |
|---|---|
| public Map Implements abstract java. Doc from java. Reads a set of file attributes as a bulk operation. This method works in
exactly the manner specified by the
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException Implements abstract java. Doc from java. Sets the value of a file attribute. This method works in exactly the
manner specified by the
| |