com.northconcepts.datapipeline.memory
Class MemoryReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.memory.MemoryReader
public class MemoryReader
- extends DataReader
Obtains records from an in-memory RecordList.
|
Method Summary |
int |
available()
Returns the number of records that can probably be read without blocking. |
RecordList |
getRecordList()
|
void |
open()
Makes this endpoint ready for reading or writing. |
protected Record |
readImpl()
Overridden by subclasses to read the next record from this DataReader. |
| 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 |
MemoryReader
public MemoryReader(RecordList recordSet)
getRecordList
public RecordList getRecordList()
open
public void open()
- Description copied from class:
DataEndpoint
- Makes this endpoint ready for reading or writing.
- Overrides:
open in class DataEndpoint
readImpl
protected Record readImpl()
throws Throwable
- Description copied from class:
DataReader
- Overridden by subclasses to read the next record from this
DataReader.
If no record is available, null will be returned.
- Specified by:
readImpl in class DataReader
- Throws:
Throwable
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
Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.