public final class ActionFile
extends java.lang.Object
DownloadActions to/from a file.| Constructor and Description |
|---|
ActionFile(java.io.File actionFile) |
| Modifier and Type | Method and Description |
|---|---|
DownloadAction[] |
load(DownloadAction.Deserializer... deserializers)
Loads
DownloadActions from file. |
void |
store(DownloadAction... downloadActions)
Stores
DownloadActions to file. |
public ActionFile(java.io.File actionFile)
actionFile - File to be used to store and load DownloadActions.public DownloadAction[] load(DownloadAction.Deserializer... deserializers) throws java.io.IOException
DownloadActions from file.deserializers - DownloadAction.Deserializers to deserialize DownloadActions.java.io.IOException - If there is an error during loading.public void store(DownloadAction... downloadActions) throws java.io.IOException
DownloadActions to file.downloadActions - DownloadActions to store to file.java.io.IOException - If there is an error during storing.