public abstract class AbstractRecordLoader<E>
extends java.lang.Object
Constructor and Description |
---|
AbstractRecordLoader() |
Modifier and Type | Method and Description |
---|---|
abstract int |
constructObjectFromRow(java.lang.String[] tokens,
java.util.ArrayList<E> objCollection) |
int |
load(java.lang.String fileName,
java.lang.String delimeter,
boolean hasHeaderLine,
int numFields,
java.util.ArrayList<E> objCollection)
Reads the data from the given file and stores them
in an ArrayList
|
public abstract int constructObjectFromRow(java.lang.String[] tokens, java.util.ArrayList<E> objCollection)
public int load(java.lang.String fileName, java.lang.String delimeter, boolean hasHeaderLine, int numFields, java.util.ArrayList<E> objCollection)
fileName:
- name of the input filedelimeter:
- file delimeterhasHeaderLine:
- specifies whether the file has a headernumFields:
- number of columns in the input fileobjCollection:
- empty list which will be loaded with the data from the input file