|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileLoader
Supports loading files from a source location into a local directory.
| Method Summary | |
|---|---|
void |
deleteFile(String path,
String filename)
Delete a file in the given directory. |
void |
deletePath(String path)
Delete all files in the given directory. |
File |
loadFile(String path,
String filename)
Loads a file from a source into a local directory.If the file is already up to date nothing will be copied. |
File |
loadFile(String path,
String filename,
org.fuin.utils4swing.progress.FileCopyProgressListener listener)
Loads a file from a source into a local directory.If the file is already up to date nothing will be copied. |
| Method Detail |
|---|
void deletePath(String path)
throws DeleteException
path - Path inside the current directory - Cannot be
null or empty (it's not allowed to delete the
base directory!=.
DeleteException - There was a problem deleting the files.
void deleteFile(String path,
String filename)
throws DeleteException
path - Path inside the current directory - Cannot be
null but may be empty.filename - Filename (without path) - Cannot be null or empty
DeleteException - There was a problem deleting the file.
File loadFile(String path,
String filename)
throws LoadingFileException
path - Path inside the current directory.filename - Filename (without path).
LoadingFileException - Loading the file failed for some reason.
File loadFile(String path,
String filename,
org.fuin.utils4swing.progress.FileCopyProgressListener listener)
throws LoadingFileException
path - Path inside the current directory.filename - Filename (without path).listener - Listener to inform about progress - Can be null
if no progress information is needed.
LoadingFileException - Loading the file failed for some reason.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||