public abstract class AbstractTextDataLoader extends FileDataLoader
args, dataFile, engine| Constructor and Description |
|---|
AbstractTextDataLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
load(InputStream data)
FileDataLoader subclasess override this method to parse
the file. |
protected abstract String |
parseExtraArguments(List args)
Parses the argument list, except the 1st (file name) argument.
|
protected abstract Object |
parseText(String text)
Parses the file content to the final object that the data loader
will return.
|
loadprotected final Object load(InputStream data) throws Exception
FileDataLoaderFileDataLoader subclasess override this method to parse
the file.load in class FileDataLoaderExceptionprotected abstract Object parseText(String text) throws Exception
text - the content of the text fileExceptionprotected abstract String parseExtraArguments(List args) throws Exception
args - the arguments (all of them, starting from the 1st)null if the encoding was not specified. In the latest
case the encoding will default to the source encoding engine
parameter (the sourceEncoding setting).Exception