com.devexperts.qd.ng
Interface RecordReader

All Known Subinterfaces:
DataRecord
All Known Implementing Classes:
DefaultRecord, RecordReaderAdapter, RecordReaderSkipper

public interface RecordReader

The RecordReader implements a strategy to read records from BufferedInput into RecordBuffer. DataRecord implementations implement this interface to read themselves but other implementations might perform complex transformations or do not read anything at all.


Method Summary
 DataRecord getIncomingRecord()
           
 DataRecord getResultingRecord()
          Returns actual DataRecord that shall be used for subscription.
 void readRecord(com.devexperts.io.BufferedInput in, RecordBuffer buffer, int cipher, java.lang.String symbol)
          Reads record from the specified input and adds it to the specified cursor.
 

Method Detail

readRecord

void readRecord(com.devexperts.io.BufferedInput in,
                RecordBuffer buffer,
                int cipher,
                java.lang.String symbol)
                throws java.io.IOException
Reads record from the specified input and adds it to the specified cursor. DataRecord implementation of this method reads the record itself, but other implementations might perform complex transformations or do not read anything at all.

Throws:
java.io.IOException

getResultingRecord

DataRecord getResultingRecord()
Returns actual DataRecord that shall be used for subscription. It might return null if this reader does not actually read anything. DataRecord implementation of this method returns this.


getIncomingRecord

DataRecord getIncomingRecord()