public abstract class ParsingReader extends AbstractReader
DataEndpoint.State
Modifier and Type | Field and Description |
---|---|
protected long |
lineNumber |
protected Parser |
parser |
protected StringBuilder |
valueBuffer |
currentRecord, fieldNames, lastRow, startingRow
fieldLineage, recordLineage
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEY
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZE
id, log, name, TIMESTAMP_FORMAT
Constructor and Description |
---|
ParsingReader(File file) |
ParsingReader(File file,
String charsetName) |
ParsingReader(Reader reader) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this endpoint's current state to a
DataException . |
protected Record |
addLineage(Record record) |
int |
available()
Returns the number of records that can probably be read without blocking.
|
protected boolean |
fillRecord(Record record) |
String |
getCharsetName() |
long |
getLineNumber() |
protected boolean |
isDigit(int c) |
protected boolean |
isLetter(int c) |
boolean |
isLineageSupported() |
protected boolean |
isNewLine(int c) |
protected void |
match(int c) |
protected void |
matchCHARACTER() |
protected void |
matchDIGIT() |
protected void |
matchDIGITS() |
protected void |
matchDOUBLE() |
protected void |
matchINTEGER() |
protected void |
matchLINE() |
protected void |
matchNEWLINE() |
protected void |
matchNEWLINES() |
void |
open()
Makes this endpoint ready for reading or writing.
|
protected boolean |
peekCHARACTER() |
getFieldNames, getLastRow, getStartingRow, isFieldNamesInFirstRow, isSkipEmptyRows, read, readImpl, setFieldNames, setFieldNames, setFieldNamesInFirstRow, setLastRow, setSkipEmptyRows, setStartingRow
getBufferSize, getNestedEndpoint, getNestedReader, getRootEndpoint, getRootReader, isExhausted, isSaveLineage, peek, pop, push, setSaveLineage, skip
close, decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toString
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescription
protected final Parser parser
protected StringBuilder valueBuffer
protected long lineNumber
public ParsingReader(File file)
public ParsingReader(Reader reader)
public long getLineNumber()
public String getCharsetName()
public void open() throws DataException
DataEndpoint
open
in class AbstractReader
DataException
public int available()
DataReader
available
in class DataReader
public DataException addExceptionProperties(DataException exception)
Endpoint
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in class AbstractReader
protected boolean fillRecord(Record record) throws Throwable
fillRecord
in class AbstractReader
Throwable
protected void matchDOUBLE()
protected void matchINTEGER()
protected void matchDIGITS()
protected void matchDIGIT()
protected boolean peekCHARACTER()
protected void matchCHARACTER()
protected void matchNEWLINES()
protected void matchNEWLINE()
protected void matchLINE()
protected boolean isLetter(int c)
protected boolean isDigit(int c)
protected boolean isNewLine(int c)
protected void match(int c)
public boolean isLineageSupported()
isLineageSupported
in class DataReader
protected Record addLineage(Record record)
addLineage
in class DataReader
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.