|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.kickstart4j.SrcFileLoader
public final class SrcFileLoader
Supports loading files defined in a update set into a local directory.
| Constructor Summary | |
|---|---|
SrcFileLoader()
Default constructor. |
|
SrcFileLoader(Config config)
Constructor with configuration. |
|
SrcFileLoader(java.lang.String configPathAndFilename)
Constructor with configuration path and filename. |
|
SrcFileLoader(java.net.URL configFileURL)
Constructor with URL. |
|
| Method Summary | |
|---|---|
void |
deleteFile(java.lang.String path,
java.lang.String filename)
Delete a file in the given directory. |
void |
deletePath(java.lang.String path)
Delete all files in the given directory. |
Config |
getConfig()
Returns the configuration. |
java.io.File |
loadFile(java.lang.String path,
java.lang.String filename)
Loads a file from a source into a local directory.If the file is already up to date nothing will be copied. |
java.io.File |
loadFile(java.lang.String path,
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SrcFileLoader()
throws InvalidConfigException
InvalidConfigException - Cannot read the configuration XML file.
public SrcFileLoader(java.lang.String configPathAndFilename)
throws InvalidConfigException
configPathAndFilename - Path and filename of XML configuration.
InvalidConfigException - Cannot read the configuration XML file.
public SrcFileLoader(java.net.URL configFileURL)
throws InvalidConfigException
configFileURL - URL of the configuration file.
InvalidConfigException - Error reading the file.public SrcFileLoader(Config config)
config - Configuration.| Method Detail |
|---|
public final Config getConfig()
public java.io.File loadFile(java.lang.String path,
java.lang.String filename)
throws LoadingFileException
loadFile in interface FileLoaderpath - Path inside the current directory.filename - Filename (without path).
LoadingFileException - Loading the file failed for some reason.
public java.io.File loadFile(java.lang.String path,
java.lang.String filename,
org.fuin.utils4swing.progress.FileCopyProgressListener listener)
throws LoadingFileException
loadFile in interface FileLoaderpath - 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.
public final void deleteFile(java.lang.String path,
java.lang.String filename)
throws DeleteException
deleteFile in interface FileLoaderpath - 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.
public final void deletePath(java.lang.String path)
throws DeleteException
deletePath in interface FileLoaderpath - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||