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
IOException
void write(File target, InputStream source) throws IOException
IOException
void move(File source, File target) throws IOException
IOException
void copy(File source, File target) throws IOException
IOException
long copy(File source, File target, FileManager.ProgressListener listener) throws IOException
IOException
Copyright © 2013–2017. All rights reserved.