Class SlicedTextDataLoader
java.lang.Object
fmpp.dataloaders.FileDataLoader
fmpp.dataloaders.AbstractTextDataLoader
fmpp.dataloaders.SlicedTextDataLoader
- All Implemented Interfaces:
DataLoader
Returns a sequence of strings based on a plain text file, where the specified
symbol is used as separator. For more information please read the FMPP
Manual.
-
Field Summary
Fields inherited from class FileDataLoader
args, dataFile, engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringparseExtraArguments(List args) Parses the argument list, except the 1st (file name) argument.protected final ObjectParses the file content to the final object that the data loader will return.protected ListpostProcessItems(List items) Override this if you want to post-process the items.Methods inherited from class AbstractTextDataLoader
loadMethods inherited from class FileDataLoader
load
-
Constructor Details
-
SlicedTextDataLoader
public SlicedTextDataLoader()
-
-
Method Details
-
parseText
Description copied from class:AbstractTextDataLoaderParses the file content to the final object that the data loader will return.- Specified by:
parseTextin classAbstractTextDataLoader- Parameters:
text- the content of the text file- Returns:
- the return value of the data loader
- Throws:
Exception
-
postProcessItems
-
parseExtraArguments
Description copied from class:AbstractTextDataLoaderParses the argument list, except the 1st (file name) argument.- Specified by:
parseExtraArgumentsin classAbstractTextDataLoader- Parameters:
args- the arguments (all of them, starting from the 1st)- Returns:
- the encoding given with the extra arguments, or
nullif the encoding was not specified. In the latest case the encoding will default to the source encoding engine parameter (the sourceEncoding setting). - Throws:
Exception
-