org.jnetstream.capture.file
Interface RecordIterator<T extends Record>

All Superinterfaces:
java.io.Closeable, FileIterator<T,T,T>, FileModifier<T,T>, java.io.Flushable, com.slytechs.utils.collection.IOAddable<T>, com.slytechs.utils.collection.IOIterator<T>, com.slytechs.utils.collection.IOPositional, com.slytechs.utils.collection.IORemovable, com.slytechs.utils.collection.IOSeekable<T>, com.slytechs.utils.collection.IOSeekableFirstLast, com.slytechs.utils.collection.IOSkippable, com.slytechs.utils.collection.IOSkippableIterator<T>
All Known Subinterfaces:
NAPBlockRecordIterator, NAPDataRecordIterator, NAPDataRecordModifier

public interface RecordIterator<T extends Record>
extends FileIterator<T,T,T>

An iterator that allows iteration over records contained in a capture file. Simple IOIterator.next() and IOIterator.hasNext() methods are used to iterate over long sequences of records which physically reside on a some storage device.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.slytechs.utils.collection.IOIterator
com.slytechs.utils.collection.IOIterator.IteratorAdapter<E>
 
Method Summary
 com.slytechs.utils.collection.SeekResult seekSecond()
          Skips over the block header, which is always the first record and aligns on the second record which is usually the data record.
 
Methods inherited from interface org.jnetstream.capture.file.FileIterator
seek, setAutoflush
 
Methods inherited from interface com.slytechs.utils.collection.IOSeekableFirstLast
seekEnd, seekFirst, seekLast
 
Methods inherited from interface com.slytechs.utils.collection.IOSkippable
skip
 
Methods inherited from interface com.slytechs.utils.collection.IOIterator
hasNext, next, remove
 
Methods inherited from interface org.jnetstream.capture.file.FileModifier
abortChanges, add, addAll, addAll, remove, removeAll, removeAll, removeAll, removeAll, replace, retainAll, retainAll, swap
 
Methods inherited from interface com.slytechs.utils.collection.IOSeekable
seek, seek
 
Methods inherited from interface com.slytechs.utils.collection.IOPositional
getPosition, setPosition, setPosition
 
Methods inherited from interface java.io.Flushable
flush
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

seekSecond

com.slytechs.utils.collection.SeekResult seekSecond()
                                                    throws java.io.IOException
Skips over the block header, which is always the first record and aligns on the second record which is usually the data record. The first record past the main block record.

Throws:
java.io.IOException