public class DataSetReader
extends java.lang.Object
Constructor and Description |
---|
DataSetReader() |
DataSetReader(java.io.File f) |
DataSetReader(FlatFileStorage fileinfo) |
DataSetReader(java.lang.String datafile) |
Modifier and Type | Method and Description |
---|---|
int |
determineRowCount() |
int |
getColumnCount() |
java.io.File |
getFile() |
FlatFileDOM |
getFlatFileDOM() |
java.util.Vector |
getHeaders() |
int |
getIgnorePostHeaderLines()
Gets the number of lines after the headers line (if any) to be ignored.
|
int |
getIgnorePreHeaderLines()
Gets the number of lines before the headers line (if any) to be ignored.
|
int |
getRowCount() |
java.util.Vector |
getTypes() |
java.lang.Object |
getValueAt(int r,
int c) |
DataSet |
newparse() |
void |
noHeaders()
Informs the parser that headers are not to be parsed from the data file.
|
void |
noTypes()
Informs the parser that types are not to be determined from the data file.
|
DataSet |
parse() |
void |
setFile(java.io.File f) |
void |
setHeaders(java.lang.String[] hdrs)
Explicitly provide headers.
|
void |
setIgnorePostHeaderLines(int h)
Ignore this many lines after the headers line (if any) before beginning to parse.
|
void |
setIgnorePreHeaderLines(int h)
Ignore this many lines before the headers line (if any) before beginning to parse.
|
void |
setTypes(java.lang.Class[] t)
Explicitly provide types.
|
public DataSetReader()
public DataSetReader(FlatFileStorage fileinfo)
public DataSetReader(java.lang.String datafile)
public DataSetReader(java.io.File f)
public int getColumnCount()
public void setFile(java.io.File f)
public java.io.File getFile()
public void setIgnorePreHeaderLines(int h)
public int getIgnorePreHeaderLines()
public void setIgnorePostHeaderLines(int h)
public int getIgnorePostHeaderLines()
public int getRowCount()
public void noHeaders()
public void noTypes()
public void setHeaders(java.lang.String[] hdrs)
public void setTypes(java.lang.Class[] t)
public java.util.Vector getTypes()
public java.util.Vector getHeaders()
public FlatFileDOM getFlatFileDOM()
public java.lang.Object getValueAt(int r, int c)
public int determineRowCount()
public DataSet newparse() throws SnifflibDatatypeException
SnifflibDatatypeException
public DataSet parse() throws SnifflibDatatypeException
SnifflibDatatypeException
Copyright © 2011, 2013. Daniel P. Dougherty