@ServiceProvider public class ReporterHandler extends ADFGraphReadHandler
listeners
Constructor and Description |
---|
ReporterHandler() |
Modifier and Type | Method and Description |
---|---|
int |
assess(String[] header)
Return the index of the last header this handler can read from in the supplied header.
|
boolean |
canReadHeader(String[] header)
Determine whether this handler can read the data referenced by this header.
|
protected void |
readData(String[] header,
String[] data,
ADF adf,
int lineNumber,
int columnNumber)
Performs the unit of work to read the data into the internal datamodel.
|
assessAttribute, canRead, read, readAttribute, updateChildNode
accept, addListener, fireHandlingFailedEvent, fireHandlingStartedEvent, fireHandlingSucceededEvent, getListeners, getLog, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, addListener, getListeners, removeListener
public boolean canReadHeader(String[] header)
ADFGraphReadHandler
canReadHeader
in class ADFGraphReadHandler
header
- the first token on a line, or the column heading, which is the string describing this line
contentspublic int assess(String[] header)
ADFGraphReadHandler
assess
in class ADFGraphReadHandler
header
- the header to assessprotected void readData(String[] header, String[] data, ADF adf, int lineNumber, int columnNumber) throws ParseException
ADFGraphReadHandler
readData
in class ADFGraphReadHandler
header
- the header identifying the data to readdata
- the data to readadf
- the ADF to populate with parsed datalineNumber
- the line this data is read fromcolumnNumber
- the column this data is read fromParseException
- if the header cannot be parsed or there was an error reading the valueCopyright © 2014. All rights reserved.