com.devexperts.qd.logger
Class BufferedDataIterator

java.lang.Object
  extended by com.devexperts.qd.logger.BufferedObject
      extended by com.devexperts.qd.logger.BufferedDataIterator
All Implemented Interfaces:
DataIterator

public class BufferedDataIterator
extends BufferedObject
implements DataIterator


Field Summary
 
Fields inherited from class com.devexperts.qd.logger.BufferedObject
sb
 
Constructor Summary
BufferedDataIterator(DataIterator delegate, DataScheme scheme)
           
 
Method Summary
 int getCipher()
          Returns cipher for the current record returned by last call to DataIterator.nextRecord().
 java.lang.String getSymbol()
          Returns symbol for the current record returned by last call to DataIterator.nextRecord().
 int nextIntField()
          Returns next Int-field within current record being iterated.
 java.lang.Object nextObjField()
          Returns next Obj-field within current record being iterated.
 DataRecord nextRecord()
          Returns next record.
 
Methods inherited from class com.devexperts.qd.logger.BufferedObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedDataIterator

public BufferedDataIterator(DataIterator delegate,
                            DataScheme scheme)
Method Detail

getCipher

public int getCipher()
Description copied from interface: DataIterator
Returns cipher for the current record returned by last call to DataIterator.nextRecord(). Returns 0 if not encoded or if no current record is being iterated.

Specified by:
getCipher in interface DataIterator

getSymbol

public java.lang.String getSymbol()
Description copied from interface: DataIterator
Returns symbol for the current record returned by last call to DataIterator.nextRecord(). Returns null if encoded or if no current record is being iterated.

Specified by:
getSymbol in interface DataIterator

nextRecord

public DataRecord nextRecord()
Description copied from interface: DataIterator
Returns next record. Returns null if no more records available.

Specified by:
nextRecord in interface DataIterator

nextIntField

public int nextIntField()
Description copied from interface: DataIterator
Returns next Int-field within current record being iterated.

Specified by:
nextIntField in interface DataIterator

nextObjField

public java.lang.Object nextObjField()
Description copied from interface: DataIterator
Returns next Obj-field within current record being iterated.

Specified by:
nextObjField in interface DataIterator