@ServiceProvider public class SampleHandler extends SDRFReadHandler
PROTOCOL_DELIMITER
listeners
Constructor and Description |
---|
SampleHandler() |
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.
|
void |
readData(String[] header,
String[] data,
SDRF sdrf,
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)
SDRFReadHandler
canReadHeader
in class SDRFReadHandler
header
- the first token on a line, or the column heading, which is the string describing this line
contentspublic int assess(String[] header)
SDRFReadHandler
assess
in class SDRFReadHandler
header
- the header to assesspublic void readData(String[] header, String[] data, SDRF sdrf, int lineNumber, int columnNumber) throws ParseException
SDRFReadHandler
readData
in class SDRFReadHandler
header
- the header identifying the data to readdata
- the data to readsdrf
- the SDRF to add data tolineNumber
- the lin number this data was read fromcolumnNumber
- the first column of the data being readParseException
- if the header cannot be parsed or there was an error reading the valueCopyright © 2014. All rights reserved.