|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SnoopFile
SNOOP capture file format from SUN Microsystem's folks.
| Field Summary | |
|---|---|
static int |
HEADER_LENGTH
|
static HeaderReader |
headerReader
|
static org.apache.commons.logging.Log |
logger
|
static byte[] |
MAGIC_PATTERN
Magic pattern made up of octets that uniquely identifies the "snoop" block record and the entire file as snoop file. |
| Method Summary | |
|---|---|
com.slytechs.utils.collection.IOSkippableIterator<SnoopBlockRecord> |
getBlockIterator()
Each capture file is organized so that there exists atleast 1 block record, usually at the beginning of the capture file. |
SnoopBlockRecord |
getBlockRecord()
|
PacketIndexer<SnoopPacket> |
getPacketIndexer()
Indexer which accesses packets by index. |
PacketIterator<SnoopPacket> |
getPacketIterator()
Retrieves an iterator Iterator which can iterate over all
the packets of this capture session. |
RawIndexer |
getRawIndexer()
Raw ByteBuffer based record indexer. |
RawIterator |
getRawIterator()
Gets an iterator that will return raw contents of the records contained in the underlying capture file. |
RecordIndexer<SnoopRecord> |
getRecordIndexer()
Indexer which accesses records by index. |
RecordIterator<SnoopRecord> |
getRecordIterator()
Iterator which iterates over every record within the file capture. |
| Methods inherited from interface org.jnetstream.capture.FileCapture |
|---|
abortChanges, flush, getFastIterator, getFile, getFormatType, getLength, getPacketCount, getPacketCount, getRawIterator, getRecordIterator, getVersion, isEmpty, isOpen, order |
| Methods inherited from interface org.jnetstream.capture.Capture |
|---|
getFilter, getType, isMutable, iterator |
| Field Detail |
|---|
static final int HEADER_LENGTH
static final byte[] MAGIC_PATTERN
73 6e 6f 6f 70 00 00 00 S N O O P '' '' ''
static final HeaderReader headerReader
static final org.apache.commons.logging.Log logger
| Method Detail |
|---|
com.slytechs.utils.collection.IOSkippableIterator<SnoopBlockRecord> getBlockIterator()
throws java.io.IOException
FileCapture
getBlockIterator in interface FileCapture<SnoopPacket>java.io.IOExceptionSnoopBlockRecord getBlockRecord()
PacketIndexer<SnoopPacket> getPacketIndexer()
throws java.io.IOException
FileCapture
getPacketIndexer in interface FileCapture<SnoopPacket>java.io.IOException - any IO errors
PacketIterator<SnoopPacket> getPacketIterator()
throws java.io.IOException
CaptureIterator which can iterate over all
the packets of this capture session. The IO based iterator mimics the
methods and behaviour of its counter part Iterator that it
can throw IO exceptions in any of the methods.
getPacketIterator in interface Capture<SnoopPacket>getPacketIterator in interface FileCapture<SnoopPacket>java.io.IOException - Any IO errors while retrieving a packet
RawIndexer getRawIndexer()
throws java.io.IOException
FileCapture
getRawIndexer in interface FileCapture<SnoopPacket>java.io.IOException - any IO errors
RawIterator getRawIterator()
throws java.io.IOException
FileCapture
getRawIterator in interface FileCapture<SnoopPacket>java.io.IOException - any IO errors
RecordIndexer<SnoopRecord> getRecordIndexer()
throws java.io.IOException
FileCapture
getRecordIndexer in interface FileCapture<SnoopPacket>java.io.IOException - any IO errors
RecordIterator<SnoopRecord> getRecordIterator()
throws java.io.IOException
FileCapture
getRecordIterator in interface FileCapture<SnoopPacket>java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||