public interface LargeFileCopy
FileSystemProvider
supports efficient copying of
large files.Modifier and Type | Method and Description |
---|---|
void |
copyLarge(Path source,
Path target)
Copies the source file to the target path in an efficient way.
|
void copyLarge(Path source, Path target) throws IOException
At least one of source
or target
will be associated with
a FileSystem
from this provider. If this method cannot
efficiently copy between the given paths, it throws
UnsupportedOperationException
, indicating that the caller should
fall back to another mechanism.
source
- the path to the file to copytarget
- the target pathUnsupportedOperationException
- if this implementation does not
support copies between a given source
-target
pairIOException
- if an I/O error occurs while copying