public abstract class FileLoader extends Object
FileLoader from a file.| Constructor and Description |
|---|
FileLoader() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canBeLoaded(String filePath)
Indicates whether file could be loaded by implementation.
|
abstract FileActiveRecord |
createFileActiveRecord() |
FileActiveRecord |
loadProperties(InputStream propertyFile)
Loads properties from input stream.
|
FileActiveRecord |
loadPropertiesFromFile(String fileNamePath)
Loads properties from file.
|
public FileActiveRecord loadPropertiesFromFile(String fileNamePath)
fileNamePath - path to existing properties fileFileActiveRecord or null if file not exists.public FileActiveRecord loadProperties(InputStream propertyFile) throws IOException
propertyFile - input stream with properties contentFileActiveRecordIOException - error when reading the streampublic abstract boolean canBeLoaded(String filePath)
public abstract FileActiveRecord createFileActiveRecord()
Copyright © 2025 FG Forrest, a.s.. All rights reserved.