jnetpcap.capture.file.snoop
Interface SnoopBlockRecord

All Superinterfaces:
BlockRecord, Record

public interface SnoopBlockRecord
extends BlockRecord

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class SnoopBlockRecord.HDR
           
 
Nested classes/interfaces inherited from interface jnetpcap.capture.file.Record
Record.Capability, Record.RecordType
 
Field Summary
static int HEADER_LENGTH
           
 
Method Summary
 int getLinktype()
           
 byte[] getMagicNumber()
           
 int getMajorVersion()
           
 void setLinktype(int linktype)
           
 void setMagicNumber(byte[] magic)
           
 void setMajorVesion(int version)
           
 
Methods inherited from interface jnetpcap.capture.file.BlockRecord
getByteOrder, getMagicPattern, getPacketCount, getPacketCount, getRecords, getVersion, setVersion, setVersion
 
Methods inherited from interface jnetpcap.capture.file.Record
getCaptureFile, getFilePosition, getHeaderBuffer, getHeaderLength, getRecordLength, getRecordType, isModified, isWritten, read, readHeader, setFilePosition, setModified, setWritten, validateRecord, write, writeHeader
 

Field Detail

HEADER_LENGTH

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

getMagicNumber

byte[] getMagicNumber()
                      throws java.io.IOException
Throws:
java.io.IOException

setMagicNumber

void setMagicNumber(byte[] magic)
                    throws java.io.IOException
Throws:
java.io.IOException

getMajorVersion

int getMajorVersion()
                    throws java.io.IOException
Throws:
java.io.IOException

setMajorVesion

void setMajorVesion(int version)
                    throws java.io.IOException
Throws:
java.io.IOException

getLinktype

int getLinktype()
                throws java.io.IOException
Throws:
java.io.IOException

setLinktype

void setLinktype(int linktype)
                 throws java.io.IOException
Throws:
java.io.IOException