public class StringFileLoader extends AbstractLoader implements FileLoader
| Constructor and Description |
|---|
StringFileLoader(FileSource source)
Returns a new loader for a file source.
|
StringFileLoader(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.
|
String |
load()
Loads information from a source and returns a specific object.
|
getLoadErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoadErrors, validateSourcepublic StringFileLoader(FileSource source)
source - the file source to be usedpublic StringFileLoader(String fileName)
fileName - a file name with all path elements (if required).public String load()
InfoLoaderInfoLoader.getLoadErrors() to retrieve them.load in interface InfoLoaderpublic FileSource getSource()
InfoLoadergetSource in interface FileLoadergetSource in interface InfoLoaderCopyright © 2010–2017. All rights reserved.