# FileSystemProvider

public abstract class **FileSystemProvider** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
Service-provider class for file systems. The methods defined by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html` class will typically delegate to an instance of this
class.

A file system provider is a concrete implementation of this class that
implements the abstract methods defined by this class. A provider is
identified by a `URI` `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getScheme()`. The default provider
is identified by the URI scheme "file". It creates the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html` that
provides access to the file systems accessible to the Java virtual machine.
The `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystems.html` class defines how file system providers are located
and loaded. The default provider is typically a system-default provider but
may be overridden if the system property `java.nio.file.spi.DefaultFileSystemProvider` is set. In that case, the
provider has a one argument constructor whose formal parameter type is `FileSystemProvider`. All other providers have a zero argument constructor
that initializes the provider.

A provider is a factory for one or more `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html` instances. Each
file system is identified by a `URI` where the URI's scheme matches
the provider's `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getScheme()`. The default file system, for example,
is identified by the URI `"file:///"`. A memory-based file system,
for example, may be identified by a URI such as `"memory:///?name=logfs"`.
The `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newFileSystem(java.net.URI,%20java.util.Map<java.lang.String,%20?>)` method may be used to create a file
system, and the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getFileSystem(java.net.URI)` method may be used to
obtain a reference to an existing file system created by the provider. Where
a provider is the factory for a single file system then it is provider dependent
if the file system is created when the provider is initialized, or later when
the `newFileSystem` method is invoked. In the case of the default
provider, the `FileSystem` is created when the provider is initialized.

All of the methods in this class are safe for use by multiple concurrent
threads.

### Protected Constructor Summary

|---|---|
|   | [FileSystemProvider](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#FileSystemProvider())() Initializes a new instance of this class. |

### Public Method Summary

|---|---|
| abstract void | [checkAccess](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#checkAccess(java.nio.file.Path,%20java.nio.file.AccessMode...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [AccessMode...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessMode.html) modes) Checks the existence, and optionally the accessibility, of a file. |
| abstract void | [copy](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#copy(java.nio.file.Path,%20java.nio.file.Path,%20java.nio.file.CopyOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) source, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) target, [CopyOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/CopyOption.html) options) Copy a file to a target file. |
| abstract void | [createDirectory](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#createDirectory(java.nio.file.Path,%20java.nio.file.attribute.FileAttribute<?>...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) dir, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs) Creates a new directory. |
| void | [createLink](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#createLink(java.nio.file.Path,%20java.nio.file.Path))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) link, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) existing) Creates a new link (directory entry) for an existing file. |
| void | [createSymbolicLink](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#createSymbolicLink(java.nio.file.Path,%20java.nio.file.Path,%20java.nio.file.attribute.FileAttribute<?>...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) link, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) target, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs) Creates a symbolic link to a target. |
| abstract void | [delete](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#delete(java.nio.file.Path))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path) Deletes a file. |
| boolean | [deleteIfExists](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#deleteIfExists(java.nio.file.Path))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path) Deletes a file if it exists. |
| abstract \<V extends [FileAttributeView](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttributeView.html)\> V | [getFileAttributeView](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getFileAttributeView(java.nio.file.Path,%20java.lang.Class<V>,%20java.nio.file.LinkOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<V\> type, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options) Returns a file attribute view of a given type. |
| abstract [FileStore](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileStore.html) | [getFileStore](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getFileStore(java.nio.file.Path))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path) Returns the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileStore.html` representing the file store where a file is located. |
| abstract [FileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html) | [getFileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getFileSystem(java.net.URI))([URI](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html) uri) Returns an existing `FileSystem` created by this provider. |
| abstract [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) | [getPath](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getPath(java.net.URI))([URI](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html) uri) Return a `Path` object by converting the given `https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html`. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getScheme](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#getScheme())() Returns the URI scheme that identifies this provider. |
| static [List](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/List.html)\<[FileSystemProvider](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html)\> | [installedProviders](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#installedProviders())() Returns a list of the installed file system providers. |
| abstract boolean | [isHidden](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#isHidden(java.nio.file.Path))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path) Tells whether or not a file is considered *hidden*. |
| abstract boolean | [isSameFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#isSameFile(java.nio.file.Path,%20java.nio.file.Path))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path2) Tests if two paths locate the same file. |
| abstract void | [move](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#move(java.nio.file.Path,%20java.nio.file.Path,%20java.nio.file.CopyOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) source, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) target, [CopyOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/CopyOption.html) options) Move or rename a file to a target file. |
| [AsynchronousFileChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AsynchronousFileChannel.html) | [newAsynchronousFileChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newAsynchronousFileChannel(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.util.concurrent.ExecutorService,%20java.nio.file.attribute.FileAttribute<?>...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<? extends [OpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html)\> options, [ExecutorService](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/ExecutorService.html) executor, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file. |
| abstract [SeekableByteChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/SeekableByteChannel.html) | [newByteChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newByteChannel(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.nio.file.attribute.FileAttribute<?>...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<? extends [OpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html)\> options, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs) Opens or creates a file, returning a seekable byte channel to access the file. |
| abstract [DirectoryStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryStream.html)\<[Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html)\> | [newDirectoryStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newDirectoryStream(java.nio.file.Path,%20java.nio.file.DirectoryStream.Filter<?%20super%20java.nio.file.Path>))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) dir, [Filter](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryStream.Filter.html)\<? super [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html)\> filter) Opens a directory, returning a `DirectoryStream` to iterate over the entries in the directory. |
| [FileChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileChannel.html) | [newFileChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newFileChannel(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.nio.file.attribute.FileAttribute<?>...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<? extends [OpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html)\> options, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs) Opens or creates a file for reading and/or writing, returning a file channel to access the file. |
| [FileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html) | [newFileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newFileSystem(java.nio.file.Path,%20java.util.Map<java.lang.String,%20?>))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html), ?\> env) Constructs a new `FileSystem` to access the contents of a file as a file system. |
| abstract [FileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html) | [newFileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newFileSystem(java.net.URI,%20java.util.Map<java.lang.String,%20?>))([URI](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html) uri, [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html), ?\> env) Constructs a new `FileSystem` object identified by a URI. |
| [InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html) | [newInputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newInputStream(java.nio.file.Path,%20java.nio.file.OpenOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [OpenOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html) options) Opens a file, returning an input stream to read from the file. |
| [OutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html) | [newOutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newOutputStream(java.nio.file.Path,%20java.nio.file.OpenOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [OpenOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html) options) Opens or creates a file, returning an output stream that may be used to write bytes to the file. |
| abstract [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [readAttributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#readAttributes(java.nio.file.Path,%20java.lang.String,%20java.nio.file.LinkOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributes, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options) Reads a set of file attributes as a bulk operation. |
| abstract \<A extends [BasicFileAttributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html)\> A | [readAttributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#readAttributes(java.nio.file.Path,%20java.lang.Class<A>,%20java.nio.file.LinkOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<A\> type, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options) Reads a file's attributes as a bulk operation. |
| [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) | [readSymbolicLink](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#readSymbolicLink(java.nio.file.Path))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) link) Reads the target of a symbolic link. |
| abstract void | [setAttribute](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#setAttribute(java.nio.file.Path,%20java.lang.String,%20java.lang.Object,%20java.nio.file.LinkOption...))([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attribute, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options) Sets the value of a file attribute. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Protected Constructors

#### protected
**FileSystemProvider**
()

Initializes a new instance of this class.

During construction a provider may safely access files associated
with the default provider but care needs to be taken to avoid circular
loading of other installed providers. If circular loading of installed
providers is detected then an unspecified error is thrown.

##### Throws

| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | If a security manager has been installed and it denies `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimePermission.html`("fileSystemProvider") |
|---|---|

## Public Methods

#### public abstract void
**checkAccess**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [AccessMode...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessMode.html) modes)

Checks the existence, and optionally the accessibility, of a file.

This method may be used by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#isReadable(java.nio.file.Path)`,
`https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#isWritable(java.nio.file.Path)` and `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#isExecutable(java.nio.file.Path)` methods to check the accessibility of a file.

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 `modes` parameter
as follows:

| Value | Description |
|---|---|
| `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessMode.html#READ` | Checks that the file exists and that the Java virtual machine has permission to read the file. |
| `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessMode.html#WRITE` | Checks that the file exists and that the Java virtual machine has permission to write to the file, |
| `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessMode.html#EXECUTE` | Checks that the file exists and that the Java virtual machine has permission to `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Runtime.html#exec(java.lang.String)` the file. The semantics may differ when checking access to a directory. For example, on UNIX systems, checking for `EXECUTE` access checks that the Java virtual machine has permission to search the directory in order to access file or subdirectories. |

If the `modes` parameter is of length zero, then the existence
of the file is checked.

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.

##### Parameters

| path | the path to the file to check |
| modes | The access modes to check; may have zero elements |
|---|---|

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | an implementation is required to support checking for `READ`, `WRITE`, and `EXECUTE` access. This exception is specified to allow for the `Access` enum to be extended in future releases. |
| [NoSuchFileException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NoSuchFileException.html) | if a file does not exist *(optional specific exception)* |
| [AccessDeniedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessDeniedException.html) | the requested access would be denied or the access cannot be determined because the Java virtual machine has insufficient privileges or other reasons. *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` is invoked when checking read access to the file or only the existence of the file, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` is invoked when checking write access to the file, and `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkExec(java.lang.String)` is invoked when checking execute access. |
|---|---|

#### public abstract void
**copy**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) source, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) target, [CopyOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/CopyOption.html) options)

Copy a file to a target file. This method works in exactly the manner
specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#copy(java.nio.file.Path,%20java.nio.file.Path,%20java.nio.file.CopyOption...)` method
except that both the source and target paths must be associated with
this provider.

##### Parameters

| source | the path to the file to copy |
| target | the path to the target file |
| options | options specifying how the copy should be done |
|---|---|

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the array contains a copy option that is not supported |
| [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html) | if the target file exists but cannot be replaced because the `REPLACE_EXISTING` option is not specified *(optional specific exception)* |
| [DirectoryNotEmptyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryNotEmptyException.html) | the `REPLACE_EXISTING` option is specified but the file cannot be replaced because it is a non-empty directory *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to the source file, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` is invoked to check write access to the target file. If a symbolic link is copied the security manager is invoked to check `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkPermission.html``("symbolic")`. |
|---|---|

#### public abstract void
**createDirectory**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) dir, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs)

Creates a new directory. This method works in exactly the manner
specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#createDirectory(java.nio.file.Path,%20java.nio.file.attribute.FileAttribute<?>...)` method.

##### Parameters

| dir | the directory to create |
| attrs | an optional list of file attributes to set atomically when creating the directory |
|---|---|

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the array contains an attribute that cannot be set atomically when creating the directory |
| [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html) | if a directory could not otherwise be created because a file of that name already exists *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs or the parent directory does not exist |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method is invoked to check write access to the new directory. |
|---|---|

#### public void
**createLink**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) link, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) existing)

Creates a new link (directory entry) for an existing file. This method
works in exactly the manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#createLink(java.nio.file.Path,%20java.nio.file.Path)`
method.

The default implementation of this method throws `UnsupportedOperationException`.

##### Parameters

| link | the link (directory entry) to create |
| existing | a path to an existing file |
|---|---|

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the implementation does not support adding an existing file to a directory |
| [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html) | if the entry could not otherwise be created because a file of that name already exists *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, it denies `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkPermission.html`("hard") or its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method denies write access to either the link or the existing file. |
|---|---|

#### public void
**createSymbolicLink**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) link, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) target, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs)

Creates a symbolic link to a target. This method works in exactly the
manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#createSymbolicLink(java.nio.file.Path,%20java.nio.file.Path,%20java.nio.file.attribute.FileAttribute<?>...)` method.

The default implementation of this method throws `UnsupportedOperationException`.

##### Parameters

| link | the path of the symbolic link to create |
| target | the target of the symbolic link |
| attrs | the array of attributes to set atomically when creating the symbolic link |
|---|---|

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the implementation does not support symbolic links or the array contains an attribute that cannot be set atomically when creating the symbolic link |
| [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html) | if a file with the name already exists *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, it denies `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkPermission.html`("symbolic") or its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method denies write access to the path of the symbolic link. |
|---|---|

#### public abstract void
**delete**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path)

Deletes a file. This method works in exactly the manner specified by the
`https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#delete(java.nio.file.Path)` method.

##### Parameters

| path | the path to the file to delete |
|---|---|

##### Throws

| [NoSuchFileException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NoSuchFileException.html) | if the file does not exist *(optional specific exception)* |
| [DirectoryNotEmptyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryNotEmptyException.html) | if the file is a directory and could not otherwise be deleted because the directory is not empty *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkDelete(java.lang.String)` method is invoked to check delete access to the file |
|---|---|

#### public boolean
**deleteIfExists**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path)

Deletes a file if it exists. This method works in exactly the manner
specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#deleteIfExists(java.nio.file.Path)` method.

The default implementation of this method simply invokes `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#delete(java.nio.file.Path)` ignoring the `NoSuchFileException` when the file does not
exist. It may be overridden where appropriate.

##### Parameters

| path | the path to the file to delete |
|---|---|

##### Returns

- `true` if the file was deleted by this method; `false` if the file could not be deleted because it did not exist

##### Throws

| [DirectoryNotEmptyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryNotEmptyException.html) | if the file is a directory and could not otherwise be deleted because the directory is not empty *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkDelete(java.lang.String)` method is invoked to check delete access to the file |
|---|---|

#### public abstract V
**getFileAttributeView**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<V\> type, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options)

Returns a file attribute view of a given type. This method works in
exactly the manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#getFileAttributeView(java.nio.file.Path,%20java.lang.Class<V>,%20java.nio.file.LinkOption...)`
method.

##### Parameters

| path | the path to the file |
| type | the `Class` object corresponding to the file attribute view |
| options | options indicating how symbolic links are handled |
|---|---|

##### Returns

- a file attribute view of the specified type, or `null` if the attribute view type is not available

#### public abstract [FileStore](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileStore.html)
**getFileStore**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path)

Returns the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileStore.html` representing the file store where a file
is located. This method works in exactly the manner specified by the
`https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#getFileStore(java.nio.file.Path)` method.

##### Parameters

| path | the path to the file |
|---|---|

##### Returns

- the file store where the file is stored

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to the file, and in addition it checks `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/RuntimePermission.html` ("getFileStoreAttributes") |
|---|---|

#### public abstract [FileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html)
**getFileSystem**
([URI](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html) uri)

Returns an existing `FileSystem` created by this provider.

This method returns a reference to a `FileSystem` that was
created by invoking the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newFileSystem(java.net.URI,%20java.util.Map<java.lang.String,%20?>)`
method. File systems created the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newFileSystem(java.nio.file.Path,%20java.util.Map<java.lang.String,%20?>)` method are not returned by this method.
The file system is identified by its `URI`. Its exact form
is highly provider dependent. In the case of the default provider the URI's
path component is `"/"` and the authority, query and fragment components
are undefined (Undefined components are represented by `null`).

Once a file system created by this provider is `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html#close()` it is provider-dependent if this
method returns a reference to the closed file system or throws `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemNotFoundException.html`. If the provider allows a new file system to
be created with the same URI as a file system it previously created then
this method throws the exception if invoked after the file system is
closed (and before a new instance is created by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newFileSystem(java.net.URI,%20java.util.Map<java.lang.String,%20?>)` method).

If a security manager is installed then a provider implementation
may require to check a permission before returning a reference to an
existing file system. In the case of the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystems.html#getDefault()` file system, no permission check is required.

##### Parameters

| uri | URI reference |
|---|---|

##### Returns

- The file system

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | If the pre-conditions for the `uri` parameter aren't met |
| [FileSystemNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemNotFoundException.html) | If the file system does not exist |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | If a security manager is installed and it denies an unspecified permission. |
|---|---|

#### public abstract [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html)
**getPath**
([URI](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html) uri)

Return a `Path` object by converting the given `https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html`. The
resulting `Path` is associated with a `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html` that
already exists or is constructed automatically.

The exact form of the URI is file system provider dependent. In the
case of the default provider, the URI scheme is `"file"` and the
given URI has a non-empty path component, and undefined query, and
fragment components. The resulting `Path` is associated with the
default `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystems.html#getDefault()` `FileSystem`.

If a security manager is installed then a provider implementation
may require to check a permission. In the case of the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystems.html#getDefault()` file system, no permission check is
required.

##### Parameters

| uri | The URI to convert |
|---|---|

##### Returns

- The resulting `Path`

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | If the URI scheme does not identify this provider or other preconditions on the uri parameter do not hold |
| [FileSystemNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemNotFoundException.html) | The file system, identified by the URI, does not exist and cannot be created automatically |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | If a security manager is installed and it denies an unspecified permission. |
|---|---|

#### public abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getScheme**
()

Returns the URI scheme that identifies this provider.

##### Returns

- The URI scheme

#### public static [List](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/List.html)\<[FileSystemProvider](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html)\>
**installedProviders**
()

Returns a list of the installed file system providers.

The first invocation of this method causes the default provider to be
initialized (if not already initialized) and loads any other installed
providers as described by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystems.html` class.

##### Returns

- An unmodifiable list of the installed file system providers. The list contains at least one element, that is the default file system provider

##### Throws

| [ServiceConfigurationError](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/ServiceConfigurationError.html) | When an error occurs while loading a service provider |
|---|---|

#### public abstract boolean
**isHidden**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path)

Tells whether or not a file is considered *hidden* . This method
works in exactly the manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#isHidden(java.nio.file.Path)`
method.

This method is invoked by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#isHidden(java.nio.file.Path)` method.

##### Parameters

| path | the path to the file to test |
|---|---|

##### Returns

- `true` if the file is considered hidden

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to the file. |
|---|---|

#### public abstract boolean
**isSameFile**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path2)

Tests if two paths locate the same file. This method works in exactly the
manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#isSameFile(java.nio.file.Path,%20java.nio.file.Path)` method.

##### Parameters

| path | one path to the file |
| path2 | the other path |
|---|---|

##### Returns

- `true` if, and only if, the two paths locate the same file

##### Throws

| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to both files. |
|---|---|

#### public abstract void
**move**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) source, [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) target, [CopyOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/CopyOption.html) options)

Move or rename a file to a target file. This method works in exactly the
manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#move(java.nio.file.Path,%20java.nio.file.Path,%20java.nio.file.CopyOption...)` method except that both the
source and target paths must be associated with this provider.

##### Parameters

| source | the path to the file to move |
| target | the path to the target file |
| options | options specifying how the move should be done |
|---|---|

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the array contains a copy option that is not supported |
| [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html) | if the target file exists but cannot be replaced because the `REPLACE_EXISTING` option is not specified *(optional specific exception)* |
| [DirectoryNotEmptyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryNotEmptyException.html) | the `REPLACE_EXISTING` option is specified but the file cannot be replaced because it is a non-empty directory *(optional specific exception)* |
| [AtomicMoveNotSupportedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AtomicMoveNotSupportedException.html) | if the options array contains the `ATOMIC_MOVE` option but the file cannot be moved as an atomic file system operation. |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method is invoked to check write access to both the source and target file. |
|---|---|

#### public [AsynchronousFileChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AsynchronousFileChannel.html)
**newAsynchronousFileChannel**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<? extends [OpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html)\> options, [ExecutorService](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/ExecutorService.html) executor, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs)

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 `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AsynchronousFileChannel.html#open(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.util.concurrent.ExecutorService,%20java.nio.file.attribute.FileAttribute<?>...)` method.
A provider that does not support all the features required to construct
an asynchronous file channel throws `UnsupportedOperationException`.
The default provider is required to support the creation of asynchronous
file channels. When not overridden, the default implementation of this
method throws `UnsupportedOperationException`.

##### Parameters

| path | the path of the file to open or create |
| options | options specifying how the file is opened |
| executor | the thread pool or `null` to associate the channel with the default thread pool |
| attrs | an optional list of file attributes to set atomically when creating the file |
|---|---|

##### Returns

- a new asynchronous file channel

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | If the set contains an invalid combination of options |
| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | If this provider that does not support creating asynchronous file channels, or an unsupported open option or file attribute is specified |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default file system, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access if the file is opened for reading. The `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method is invoked to check write access if the file is opened for writing |
|---|---|

#### public abstract [SeekableByteChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/SeekableByteChannel.html)
**newByteChannel**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<? extends [OpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html)\> options, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs)

Opens or creates a file, returning a seekable byte channel to access the
file. This method works in exactly the manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#newByteChannel(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.nio.file.attribute.FileAttribute<?>...)` method.

##### Parameters

| path | the path to the file to open or create |
| options | options specifying how the file is opened |
| attrs | an optional list of file attributes to set atomically when creating the file |
|---|---|

##### Returns

- a new seekable byte channel

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if the set contains an invalid combination of options |
| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if an unsupported open option is specified or the array contains attributes that cannot be set atomically when creating the file |
| [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html) | if a file of that name already exists and the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/StandardOpenOption.html#CREATE_NEW` option is specified *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to the path if the file is opened for reading. The `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method is invoked to check write access to the path if the file is opened for writing. The `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkDelete(java.lang.String)` method is invoked to check delete access if the file is opened with the `DELETE_ON_CLOSE` option. |
|---|---|

#### public abstract [DirectoryStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryStream.html)\<[Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html)\>
**newDirectoryStream**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) dir, [Filter](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryStream.Filter.html)\<? super [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html)\> filter)

Opens a directory, returning a `DirectoryStream` to iterate over
the entries in the directory. This method works in exactly the manner
specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#newDirectoryStream(java.nio.file.Path,%20java.nio.file.DirectoryStream.Filter<?%20super%20java.nio.file.Path>)`
method.

##### Parameters

| dir | the path to the directory |
| filter | the directory stream filter |
|---|---|

##### Returns

- a new and open `DirectoryStream` object

##### Throws

| [NotDirectoryException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NotDirectoryException.html) | if the file could not otherwise be opened because it is not a directory *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to the directory. |
|---|---|

#### public [FileChannel](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileChannel.html)
**newFileChannel**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<? extends [OpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html)\> options, [FileAttribute...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html)\<?\> attrs)

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 `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileChannel.html#open(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.nio.file.attribute.FileAttribute<?>...)` method. A provider that does not support all the
features required to construct a file channel throws `UnsupportedOperationException`. The default provider is required to
support the creation of file channels. When not overridden, the default
implementation throws `UnsupportedOperationException`.

##### Parameters

| path | the path of the file to open or create |
| options | options specifying how the file is opened |
| attrs | an optional list of file attributes to set atomically when creating the file |
|---|---|

##### Returns

- a new file channel

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | If the set contains an invalid combination of options |
| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | If this provider that does not support creating file channels, or an unsupported open option or file attribute is specified |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default file system, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access if the file is opened for reading. The `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method is invoked to check write access if the file is opened for writing |
|---|---|

#### public [FileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html)
**newFileSystem**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html), ?\> env)

Constructs a new `FileSystem` to access the contents of a file as a
file system.

This method is intended for specialized providers of pseudo file
systems where the contents of one or more files is treated as a file
system. The `env` parameter is a map of provider specific properties
to configure the file system.

If this provider does not support the creation of such file systems
or if the provider does not recognize the file type of the given file then
it throws `UnsupportedOperationException`. The default implementation
of this method throws `UnsupportedOperationException`.

##### Parameters

| path | The path to the file |
| env | A map of provider specific properties to configure the file system; may be empty |
|---|---|

##### Returns

- A new file system

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | If this provider does not support access to the contents as a file system or it does not recognize the file type of the given file |
| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | If the `env` parameter does not contain properties required by the provider, or a property value is invalid |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | If a security manager is installed and it denies an unspecified permission. |
|---|---|

#### public abstract [FileSystem](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html)
**newFileSystem**
([URI](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/URI.html) uri, [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html), ?\> env)

Constructs a new `FileSystem` object identified by a URI. This
method is invoked by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystems.html#newFileSystem(java.net.URI,%20java.util.Map<java.lang.String,%20?>)`
method to open a new file system identified by a URI.

The `uri` parameter is an absolute, hierarchical URI, with a
scheme equal (without regard to case) to the scheme supported by this
provider. The exact form of the URI is highly provider dependent. The
`env` parameter is a map of provider specific properties to configure
the file system.

This method throws `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemAlreadyExistsException.html` if the
file system already exists because it was previously created by an
invocation of this method. Once a file system is `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystem.html#close()` it is provider-dependent if the
provider allows a new file system to be created with the same URI as a
file system it previously created.

##### Parameters

| uri | URI reference |
| env | A map of provider specific properties to configure the file system; may be empty |
|---|---|

##### Returns

- A new file system

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | If the pre-conditions for the `uri` parameter aren't met, or the `env` parameter does not contain properties required by the provider, or a property value is invalid |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | An I/O error occurs creating the file system |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | If a security manager is installed and it denies an unspecified permission required by the file system provider implementation |
| [FileSystemAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemAlreadyExistsException.html) | If the file system has already been created |
|---|---|

#### public [InputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html)
**newInputStream**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [OpenOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html) options)

Opens a file, returning an input stream to read from the file. This
method works in exactly the manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#newInputStream(java.nio.file.Path,%20java.nio.file.OpenOption...)` method.

The default implementation of this method opens a channel to the file
as if by invoking the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newByteChannel(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.nio.file.attribute.FileAttribute<?>...)` method and constructs a
stream that reads bytes from the channel. This method should be overridden
where appropriate.

##### Parameters

| path | the path to the file to open |
| options | options specifying how the file is opened |
|---|---|

##### Returns

- a new input stream

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if an invalid combination of options is specified |
| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if an unsupported option is specified |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to the file. |
|---|---|

#### public [OutputStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html)
**newOutputStream**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [OpenOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/OpenOption.html) options)

Opens or creates a file, returning an output stream that may be used to
write bytes to the file. This method works in exactly the manner
specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#newOutputStream(java.nio.file.Path,%20java.nio.file.OpenOption...)` method.

The default implementation of this method opens a channel to the file
as if by invoking the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/spi/FileSystemProvider.html#newByteChannel(java.nio.file.Path,%20java.util.Set<?%20extends%20java.nio.file.OpenOption>,%20java.nio.file.attribute.FileAttribute<?>...)` method and constructs a
stream that writes bytes to the channel. This method should be overridden
where appropriate.

##### Parameters

| path | the path to the file to open or create |
| options | options specifying how the file is opened |
|---|---|

##### Returns

- a new output stream

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if `options` contains an invalid combination of options |
| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if an unsupported option is specified |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method is invoked to check write access to the file. The `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkDelete(java.lang.String)` method is invoked to check delete access if the file is opened with the `DELETE_ON_CLOSE` option. |
|---|---|

#### public abstract [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**readAttributes**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributes, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options)

Reads a set of file attributes as a bulk operation. This method works in
exactly the manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#readAttributes(java.nio.file.Path,%20java.lang.String,%20java.nio.file.LinkOption...)` method.

##### Parameters

| path | the path to the file |
| attributes | the attributes to read |
| options | options indicating how symbolic links are handled |
|---|---|

##### Returns

- a map of the attributes returned; may be empty. The map's keys are the attribute names, its values are the attribute values

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the attribute view is not available |
| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if no attributes are specified or an unrecognized attributes is specified |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method denies read access to the file. If this method is invoked to read security sensitive attributes then the security manager may be invoke to check for additional permissions. |
|---|---|

#### public abstract A
**readAttributes**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<A\> type, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options)

Reads a file's attributes as a bulk operation. This method works in
exactly the manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#readAttributes(java.nio.file.Path,%20java.lang.Class<A>,%20java.nio.file.LinkOption...)` method.

##### Parameters

| path | the path to the file |
| type | the `Class` of the file attributes required to read |
| options | options indicating how symbolic links are handled |
|---|---|

##### Returns

- the file attributes

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if an attributes of the given type are not supported |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, a security manager is installed, its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkRead(java.lang.String)` method is invoked to check read access to the file |
|---|---|

#### public [Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html)
**readSymbolicLink**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) link)

Reads the target of a symbolic link. This method works in exactly the
manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#readSymbolicLink(java.nio.file.Path)` method.

The default implementation of this method throws `UnsupportedOperationException`.

##### Parameters

| link | the path to the symbolic link |
|---|---|

##### Returns

- The target of the symbolic link

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the implementation does not support symbolic links |
| [NotLinkException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NotLinkException.html) | if the target could otherwise not be read because the file is not a symbolic link *(optional specific exception)* |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | if an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, it checks that `FilePermission` has been granted with the "`readlink`" action to read the link. |
|---|---|

#### public abstract void
**setAttribute**
([Path](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Path.html) path, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attribute, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value, [LinkOption...](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) options)

Sets the value of a file attribute. This method works in exactly the
manner specified by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#setAttribute(java.nio.file.Path,%20java.lang.String,%20java.lang.Object,%20java.nio.file.LinkOption...)` method.

##### Parameters

| path | the path to the file |
| attribute | the attribute to set |
| value | the attribute value |
| options | options indicating how symbolic links are handled |
|---|---|

##### Throws

| [UnsupportedOperationException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/UnsupportedOperationException.html) | if the attribute view is not available |
| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if the attribute name is not specified, or is not recognized, or the attribute value is of the correct type but has an inappropriate value |
| [ClassCastException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ClassCastException.html) | If the attribute value is not of the expected type or is a collection containing elements that are not of the expected type |
| [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html) | If an I/O error occurs |
| [SecurityException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityException.html) | In the case of the default provider, and a security manager is installed, its `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/SecurityManager.html#checkWrite(java.lang.String)` method denies write access to the file. If this method is invoked to set security sensitive attributes then the security manager may be invoked to check for additional permissions. |
|---|---|