| Package | Description |
|---|---|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
| java.nio.file.spi |
Service-provider classes for the
java.nio.file package. |
| Modifier and Type | Method | Description |
|---|---|---|
static FileSystem |
FileSystems.getDefault() |
Returns the default
FileSystem. |
static FileSystem |
FileSystems.getFileSystem(URI uri) |
Returns a reference to an existing
FileSystem. |
FileSystem |
Path.getFileSystem() |
Returns the file system that created this object.
|
static FileSystem |
FileSystems.newFileSystem(URI uri,
Map<String,?> env) |
Constructs a new file system that is identified by a
URI |
static FileSystem |
FileSystems.newFileSystem(URI uri,
Map<String,?> env,
ClassLoader loader) |
Constructs a new file system that is identified by a
URI |
static FileSystem |
FileSystems.newFileSystem(Path path,
ClassLoader loader) |
Constructs a new
FileSystem to access the contents of a file as a
file system. |
| Modifier and Type | Method | Description |
|---|---|---|
abstract FileSystem |
FileSystemProvider.getFileSystem(URI uri) |
Returns an existing
FileSystem created by this provider. |
abstract FileSystem |
FileSystemProvider.newFileSystem(URI uri,
Map<String,?> env) |
Constructs a new
FileSystem object identified by a URI. |
FileSystem |
FileSystemProvider.newFileSystem(Path path,
Map<String,?> env) |
Constructs a new
FileSystem to access the contents of a file as a
file system. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1