com.northconcepts.datapipeline.core
Class ParsingReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.AbstractReader
com.northconcepts.datapipeline.core.ParsingReader
- Direct Known Subclasses:
- CombinedLogReader
public abstract class ParsingReader
- extends AbstractReader
| Methods inherited from class com.northconcepts.datapipeline.core.AbstractReader |
getFieldNames, getLastRow, getStartingRow, isFieldNamesInFirstRow, open, read, readImpl, setFieldNames, setFieldNamesInFirstRow, setLastRow, setStartingRow |
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, close, decrementRecordCount, exception, exception, exception, finalize, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, toString |
parser
protected final Parser parser
valueBuffer
protected StringBuffer valueBuffer
ParsingReader
public ParsingReader(File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
ParsingReader
public ParsingReader(Reader reader)
available
public int available()
- Description copied from class:
DataReader
- Returns the number of records that can probably be read without blocking.
- Overrides:
available in class DataReader
addExceptionProperties
public DataException addExceptionProperties(DataException exception)
- Description copied from class:
DataEndpoint
- Adds this endpoint's current state to a
DataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.
- Overrides:
addExceptionProperties in class AbstractReader
fillRecord
protected boolean fillRecord(Record record)
throws Throwable
- Specified by:
fillRecord in class AbstractReader
- Throws:
Throwable
matchDOUBLE
protected void matchDOUBLE()
matchINTEGER
protected void matchINTEGER()
matchDIGITS
protected void matchDIGITS()
matchDIGIT
protected void matchDIGIT()
matchCHARACTER
protected void matchCHARACTER()
matchNEWLINES
protected void matchNEWLINES()
matchNEWLINE
protected void matchNEWLINE()
isLetter
protected boolean isLetter(int c)
isDigit
protected boolean isDigit(int c)
isNewLine
protected boolean isNewLine(int c)
match
protected void match(int c)
Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.