public abstract class FileSystem extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FileSystem.CreationAction
An action to create a dispatcher for a
FileSystem. |
protected static class |
FileSystem.ForLegacyVm
A file system representation for a VM that does not support NIO2.
|
protected static class |
FileSystem.ForNio2CapableVm
A file system representation for a VM that does support NIO2.
|
| Modifier and Type | Field and Description |
|---|---|
static FileSystem |
INSTANCE
The file system accessor to use.
|
| Constructor and Description |
|---|
FileSystem() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
copy(File source,
File target)
Copies a file.
|
abstract void |
move(File source,
File target)
Moves a file.
|
public static final FileSystem INSTANCE
public abstract void copy(File source, File target) throws IOException
source - The source file.target - The target file.IOException - If an I/O exception occurs.public abstract void move(File source, File target) throws IOException
source - The source file.target - The target file.IOException - If an I/O exception occurs.Copyright © 2014–2021. All rights reserved.