public abstract class FileSystem extends Object
Modifier and Type | Class and Description |
---|---|
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.
|
Constructor and Description |
---|
FileSystem() |
Modifier and Type | Method and Description |
---|---|
abstract void |
copy(File source,
File target)
Copies a file.
|
static FileSystem |
getInstance()
Returns the
FileSystem instance to use. |
abstract void |
move(File source,
File target)
Moves a file.
|
@CachedReturnPlugin.Enhance(value="INSTANCE") public static FileSystem getInstance()
FileSystem
instance to use.FileSystem
instance to use.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–2024. All rights reserved.