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, startingRowfieldLineage, recordLineagelastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, 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, setStartingRowgetBufferSize, getNestedEndpoint, getNestedReader, getReader, getRootEndpoint, getRootReader, isExhausted, isSaveLineage, peek, pop, push, setSaveLineage, skipclose, decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringaddElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescriptionprotected 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
DataEndpointopen in class AbstractReaderDataExceptionpublic int available()
DataReaderavailable in class DataReaderpublic DataException addExceptionProperties(DataException exception)
EndpointDataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in class AbstractReaderprotected boolean fillRecord(Record record) throws Throwable
fillRecord in class AbstractReaderThrowableprotected 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 DataReaderprotected Record addLineage(Record record)
addLineage in class DataReaderCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.