public abstract class AbstractTextDataLoader extends FileDataLoader
args, dataFile, engine| Constructor and Description |
|---|
AbstractTextDataLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
load(java.io.InputStream data)
FileDataLoader subclasess override this method to parse
the file. |
protected abstract java.lang.String |
parseExtraArguments(java.util.List args)
Parses the argument list, except the 1st (file name) argument.
|
protected abstract java.lang.Object |
parseText(java.lang.String text)
Parses the file content to the final object that the data loader
will return.
|
loadprotected final java.lang.Object load(java.io.InputStream data)
throws java.lang.Exception
FileDataLoaderFileDataLoader subclasess override this method to parse
the file.load in class FileDataLoaderjava.lang.Exceptionprotected abstract java.lang.Object parseText(java.lang.String text)
throws java.lang.Exception
text - the content of the text filejava.lang.Exceptionprotected abstract java.lang.String parseExtraArguments(java.util.List args)
throws java.lang.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).java.lang.Exception