public class SlicedTextDataLoader extends AbstractTextDataLoader
args, dataFile, engine
Constructor and Description |
---|
SlicedTextDataLoader() |
Modifier and Type | Method and Description |
---|---|
protected String |
parseExtraArguments(List args)
Parses the argument list, except the 1st (file name) argument.
|
protected Object |
parseText(String text)
Parses the file content to the final object that the data loader
will return.
|
protected List |
postProcessItems(List items)
Override this if you want to post-process the items.
|
load
load
protected final Object parseText(String text) throws Exception
AbstractTextDataLoader
parseText
in class AbstractTextDataLoader
text
- the content of the text fileException
protected List postProcessItems(List items)
items
- the list of String
-s that the standard
slicedText data loader would return.protected final String parseExtraArguments(List args) throws Exception
AbstractTextDataLoader
parseExtraArguments
in class AbstractTextDataLoader
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