org.jnetstream.capture.file.pcap
Interface PcapPacketRecord

All Superinterfaces:
DataRecord, PcapRecord, Record, com.slytechs.utils.collection.Validatable

public interface PcapPacketRecord
extends DataRecord, PcapRecord

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class PcapPacketRecord.PcapPacketHeader
           
 
Nested classes/interfaces inherited from interface org.jnetstream.capture.file.Record
Record.RecordHeaderField
 
Nested classes/interfaces inherited from interface org.jnetstream.capture.file.Record
Record.RecordHeaderField
 
Field Summary
static Filter<RecordFilterTarget> FILTER
          Predefined filter that accepts only Packet record types.
static int HEADER_LENGTH
           
static int MAX_INCLUDED
           
static int MAX_MICRO
           
static int MAX_ORIGINAL
           
static int MIN_INCLUDED
           
static int MIN_MICRO
           
static int MIN_ORIGINAL
           
static SeekPattern pattern
           
 
Method Summary
 long getIncludedLength()
           
 long getMicroseconds()
           
 long getOriginalLength()
           
 long getSeconds()
           
 void setIncludedLength(int snaplen)
           
 void setMicroseconds(long micros)
           
 void setOrignalLength(int length)
           
 void setSeconds(long seconds)
           
 
Methods inherited from interface org.jnetstream.capture.file.DataRecord
asType, getBlockRecord, getRecordDataBuffer, getRecordDataLength
 
Methods inherited from interface org.jnetstream.capture.file.Record
asType, edit, getFileCapture, getPositionGlobal, getRecordBuffer, getRecordHeaderBuffer, getRecordHeaderLength, getRecordLength, getRecordType
 
Methods inherited from interface com.slytechs.utils.collection.Validatable
isValid
 
Methods inherited from interface org.jnetstream.capture.file.pcap.PcapRecord
getPcapRecordType
 
Methods inherited from interface org.jnetstream.capture.file.Record
asType, edit, getFileCapture, getPositionGlobal, getRecordBuffer, getRecordHeaderBuffer, getRecordHeaderLength, getRecordLength, getRecordType
 
Methods inherited from interface com.slytechs.utils.collection.Validatable
isValid
 

Field Detail

FILTER

static final Filter<RecordFilterTarget> FILTER
Predefined filter that accepts only Packet record types. All other types of records are filtered out.


HEADER_LENGTH

static final int HEADER_LENGTH
See Also:
Constant Field Values

MAX_INCLUDED

static final int MAX_INCLUDED
See Also:
Constant Field Values

MAX_MICRO

static final int MAX_MICRO
See Also:
Constant Field Values

MAX_ORIGINAL

static final int MAX_ORIGINAL
See Also:
Constant Field Values

MIN_INCLUDED

static final int MIN_INCLUDED
See Also:
Constant Field Values

MIN_MICRO

static final int MIN_MICRO
See Also:
Constant Field Values

MIN_ORIGINAL

static final int MIN_ORIGINAL
See Also:
Constant Field Values

pattern

static final SeekPattern pattern
Method Detail

getIncludedLength

long getIncludedLength()
                       throws java.io.IOException
Throws:
java.io.IOException

getMicroseconds

long getMicroseconds()
                     throws java.io.IOException
Throws:
java.io.IOException

getOriginalLength

long getOriginalLength()
                       throws java.io.IOException
Throws:
java.io.IOException

getSeconds

long getSeconds()
                throws java.io.IOException
Throws:
java.io.IOException

setIncludedLength

void setIncludedLength(int snaplen)
                       throws java.io.IOException
Throws:
java.io.IOException

setMicroseconds

void setMicroseconds(long micros)
                     throws java.io.IOException
Throws:
java.io.IOException

setOrignalLength

void setOrignalLength(int length)
                      throws java.io.IOException
Throws:
java.io.IOException

setSeconds

void setSeconds(long seconds)
                throws java.io.IOException
Throws:
java.io.IOException