org.jnetstream.capture.file.snoop
Interface SnoopBlockRecord

All Superinterfaces:
BlockRecord, Record, SnoopRecord, com.slytechs.utils.collection.Validatable

public interface SnoopBlockRecord
extends BlockRecord, SnoopRecord

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class SnoopBlockRecord.SnoopBlockHeader
           
 
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 Block record types.
static int HEADER_LENGTH
           
static byte[] MAGIC_PATTERN
           
static long MAJOR_VERSION
           
 
Method Summary
 long getLinktype()
           
 byte[] getMagicNumber()
           
 long getMajorVersion()
           
 void setLinktype(long linktype)
           
 void setMagicNumber(byte[] magic)
           
 void setMajorVersion(long version)
          Sets the version numbers for the file format.
 
Methods inherited from interface org.jnetstream.capture.file.BlockRecord
getMagicPattern, getVersion, order
 
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.snoop.SnoopRecord
getSnoopRecordType
 
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 Block record types. All other types of records are filtered out.


HEADER_LENGTH

static final int HEADER_LENGTH
See Also:
Constant Field Values

MAGIC_PATTERN

static final byte[] MAGIC_PATTERN

MAJOR_VERSION

static final long MAJOR_VERSION
See Also:
Constant Field Values
Method Detail

getLinktype

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

getMagicNumber

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

getMajorVersion

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

setLinktype

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

setMagicNumber

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

setMajorVersion

void setMajorVersion(long version)
                     throws java.io.IOException
Description copied from interface: BlockRecord
Sets the version numbers for the file format.

Specified by:
setMajorVersion in interface BlockRecord
Parameters:
version - major version of the file format
Throws:
java.io.IOException