org.jnetstream.capture.file.nap
Interface NapFile

All Superinterfaces:
Capture<NAPPacket>, java.io.Closeable, FileCapture<NAPPacket>, java.io.Flushable, java.lang.Iterable<NAPPacket>

public interface NapFile
extends FileCapture<NAPPacket>

NAP capture file format from Sly Technologies folks.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Field Summary
static long BLOCKING_FACTOR
           
static int HDR_RECORD_LENGTH
           
static int HDR_TYPE
           
 
Method Summary
 NAPBlockRecordIterator getBlockIterator()
          Retrieves iterator over all Block Records within this NAP file.
 
Methods inherited from interface org.jnetstream.capture.FileCapture
abortChanges, flush, getFastIterator, getFile, getFormatType, getLength, getPacketCount, getPacketCount, getPacketIndexer, getPacketIterator, getRawIndexer, getRawIterator, getRawIterator, getRecordIndexer, getRecordIterator, getRecordIterator, getVersion, isEmpty, isOpen, order
 
Methods inherited from interface org.jnetstream.capture.Capture
getFilter, getType, isMutable, iterator
 

Field Detail

BLOCKING_FACTOR

static final long BLOCKING_FACTOR
See Also:
Constant Field Values

HDR_RECORD_LENGTH

static final int HDR_RECORD_LENGTH
See Also:
Constant Field Values

HDR_TYPE

static final int HDR_TYPE
See Also:
Constant Field Values
Method Detail

getBlockIterator

NAPBlockRecordIterator getBlockIterator()
                                        throws java.io.IOException
Retrieves iterator over all Block Records within this NAP file. NAP files may contain any number of block records (file headers). Each block record contains any number of data records (packet, meta, no-op records)

Specified by:
getBlockIterator in interface FileCapture<NAPPacket>
Returns:
Throws:
java.io.IOException