| 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 and Description |
|---|---|
static FileSystem |
FileSystems.getDefault()
Returns the default
FileSystem.
|
FileSystem |
Path.getFileSystem()
Returns the file system that created this object.
|
static FileSystem |
FileSystems.getFileSystem(URI
Returns a reference to an existing
FileSystem.
|
static FileSystem |
FileSystems.newFileSystem(Path
Constructs a new
FileSystem to access the contents of a file as a file system.
|
static FileSystem |
FileSystems.newFileSystem(URI
Constructs a new file system that is identified by a
URI
|
static FileSystem |
FileSystems.newFileSystem(URI
Constructs a new file system that is identified by a
URI
|
| Modifier and Type | Method and Description |
|---|---|
abstract FileSystem |
FileSystemProvider.getFileSystem(URI
Returns an existing
FileSystem created by this provider.
|
FileSystem |
FileSystemProvider.newFileSystem(Path
Constructs a new
FileSystem to access the contents of a file as a file system.
|
abstract FileSystem |
FileSystemProvider.newFileSystem(URI
Constructs a new
FileSystem object identified by a URI.
|