public abstract class FileManager extends Object
The file paths in an Encyclopedia database must respect the following rules:
"\"
.
Examples:
Constructor and Description |
---|
FileManager() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
delete(String internalFileName)
Delete a file from the System Architect Encyclopedia database.
|
abstract boolean |
exists(String internalFileName)
Tests if the file exists in the System Architect Encyclopedia database.
|
abstract void |
exportFile(String fileName,
File outputFile)
Export a file from the Encyclopedia database.
|
abstract void |
importFile(File externalFile,
String internalFileName)
Import a file in the Encyclopedia database.
|
public abstract void exportFile(String fileName, File outputFile)
fileName
- the file name in the Encyclopedia database with the containing folder and the file extension.outputFile
- the output file.public abstract void importFile(File externalFile, String internalFileName)
externalFile
- the file that will be imported in the Encyclopedia database.internalFileName
- the file path name in the Encyclopedia database with the containing folder and the file extension.public abstract boolean delete(String internalFileName)
internalFileName
- the file path name in the Encyclopedia database with the containing folder and the file extension.true
if and only if the file is successfully deleted from the Encyclopedia database;
false
otherwise.public abstract boolean exists(String internalFileName)
internalFileName
- the file path name in the Encyclopedia database with the containing folder and the file extension.true
if and only if the file exists in the Encyclopedia database;
false
otherwise.