public abstract class FileDataLoader extends java.lang.Object implements DataLoader
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
args |
protected java.io.File |
dataFile |
protected Engine |
engine |
| Constructor and Description |
|---|
FileDataLoader() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
load(Engine engine,
java.util.List args) |
protected abstract java.lang.Object |
load(java.io.InputStream data)
FileDataLoader subclasess override this method to parse
the file. |
protected Engine engine
protected java.util.List args
protected java.io.File dataFile
public java.lang.Object load(Engine engine, java.util.List args) throws java.lang.Exception
load in interface DataLoaderargs - Arguments that the caller specifies for this directive call.
Not null.
The implementation should check if it understands all arguments,
and it should throw java.lang.IllegalArgumentException
if it doesn't.freemarker.template.TemplateModel, then it
will not be wrapped, as it is already an FTL variable.java.lang.Exceptionprotected abstract java.lang.Object load(java.io.InputStream data)
throws java.lang.Exception
FileDataLoader subclasess override this method to parse
the file.java.lang.Exception