public interface FileManager
Lock.| Modifier and Type | Interface and Description |
|---|---|
static interface |
FileManager.ProgressListener
A listener object that is notified for every progress made while copying files.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(File source,
File target) |
long |
copy(File source,
File target,
FileManager.ProgressListener listener) |
boolean |
mkdirs(File directory) |
void |
move(File source,
File target) |
Lock |
readLock(File target)
Obtain a lock object that may be used to lock the target file for reading.
|
void |
write(File target,
InputStream source) |
void |
write(File target,
String data) |
Lock |
writeLock(File target)
Obtain a lock object that may be used to lock the target file for writing.
|
Lock readLock(File target)
Lock.lock()).target - the file to lock, never null.null.Lock writeLock(File target)
Lock.lock()).target - the file to lock, never null.null.boolean mkdirs(File directory)
void write(File target, String data) throws IOException
IOExceptionvoid write(File target, InputStream source) throws IOException
IOExceptionvoid move(File source, File target) throws IOException
IOExceptionvoid copy(File source, File target) throws IOException
IOExceptionlong copy(File source, File target, FileManager.ProgressListener listener) throws IOException
IOExceptionCopyright © 2013–2016. All rights reserved.