T - Type of object which can be loaded by the Loaderpublic abstract class AsciiFileLoader<T> extends Object implements Loader<T,String>
AsciiFileLoader can be used
to convert a basic text file into any Object. The Loader is used mainly in the
ResourceLoader.| Constructor and Description |
|---|
AsciiFileLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getObject(String name,
Object[] args)
Wrapper to instantiate a
Class from full classname. |
LineBasedParser |
getPreProcessor()
The preprocessor is used during reading.
|
public LineBasedParser getPreProcessor()
LineBasedParser
will get called. (When reading from cache for example, no PreProcessor is getting called).protected Object getObject(String name, Object[] args) throws Exception
Class from full classname.
This method will find a suitable constructor for the given argsname - Full classnameargs - array of arguments (or null, if none)Exception - (Lots of Reflection Exceptions)Copyright © 2014. All rights reserved.