public interface FileLoader
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 emptyDeleteException - 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.Copyright © 2013 Future Invent Informationsmanagement GmbH, Hamburg (Germany). All Rights Reserved.