jnetpcap.capture.file.pcap
Interface PcapFile

All Superinterfaces:
Capture<FilePacket>, java.io.Closeable, FileCapture, FileIterator, java.io.Flushable, MutableCapture<FilePacket>, MutableFileCapture, MutableFileIterator

public interface PcapFile
extends MutableFileCapture

PCAP file format from tcpdump.org folks.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Field Summary
static int HEADER_LENGTH
           
static byte[] MAGIC_PATTERN_BE
           
static byte[] MAGIC_PATTERN_LE
           
 
Method Summary
 PcapBlockRecord newBlockRecord()
           
 PcapPacketRecord newPacketRecord(PcapBlockRecord parent)
           
 
Methods inherited from interface jnetpcap.capture.MutableFileCapture
flush
 
Methods inherited from interface jnetpcap.capture.FileCapture
asType, close, getFileType, getHeaderByteOrder, getMagicPattern, getPacketCount, getPacketCount, getRecords, getVersion, newPacket
 
Methods inherited from interface jnetpcap.capture.Capture
getFilter, getMutableCapture, getRemoteSession, isCaptureMutable, isCaptureRemote, setFilter
 
Methods inherited from interface jnetpcap.capture.FileIterator
getPosition
 
Methods inherited from interface jnetpcap.capture.Capture
getFilter, getMutableCapture, getRemoteSession, isCaptureMutable, isCaptureRemote, setFilter
 
Methods inherited from interface jnetpcap.capture.MutableFileIterator
seek, setPosition
 
Methods inherited from interface jnetpcap.capture.FileIterator
getPosition
 

Field Detail

MAGIC_PATTERN_LE

static final byte[] MAGIC_PATTERN_LE

MAGIC_PATTERN_BE

static final byte[] MAGIC_PATTERN_BE

HEADER_LENGTH

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

newBlockRecord

PcapBlockRecord newBlockRecord()
                               throws java.io.IOException
Throws:
java.io.IOException

newPacketRecord

PcapPacketRecord newPacketRecord(PcapBlockRecord parent)
                                 throws java.io.IOException
Throws:
java.io.IOException