public class PropertyFileLoader extends Object
PropertyFileLoader from a file.| Constructor and Description |
|---|
PropertyFileLoader() |
| Modifier and Type | Method and Description |
|---|---|
PropertyFileActiveRecord |
loadProperties(InputStream propertyFile)
Loads properties from input stream.
|
PropertyFileActiveRecord |
loadPropertiesFromFile(String fileNamePath)
Loads properties from file.
|
public PropertyFileActiveRecord loadPropertiesFromFile(String fileNamePath)
fileNamePath - path to existing properties filePropertyFileActiveRecord or null if file not exists.IOException - error when reading the filepublic PropertyFileActiveRecord loadProperties(InputStream propertyFile) throws IOException
propertyFile - input stream with properties contentPropertyFileActiveRecordIOException - error when reading the streamCopyright © 2021 FG Forrest, a.s.. All rights reserved.