public class PropertyFileLoader extends AbstractLoader implements FileLoader
| Constructor and Description |
|---|
PropertyFileLoader(FileSource source)
Returns a new loader for a file source.
|
PropertyFileLoader(String fileName)
Returns a new loader for a file name, creating a file source automatically.
|
| Modifier and Type | Method and Description |
|---|---|
FileSource |
getSource()
Returns the source set for the loader, that is where the loader loads information from.
|
Properties |
load()
Loads information from a source and returns a specific object.
|
getLoadErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoadErrors, validateSourcepublic PropertyFileLoader(FileSource source)
source - the file source to be usedpublic PropertyFileLoader(String fileName)
fileName - a file name with all path elements (if required).
The file name cannot be located (see FileSource.FileSource(String) the property loader is not valid.public Properties load()
InfoLoaderInfoLoader.getLoadErrors() to retrieve them.load in interface InfoLoaderpublic FileSource getSource()
InfoLoadergetSource in interface FileLoadergetSource in interface InfoLoaderCopyright © 2010–2017. All rights reserved.