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.
| Methods inherited from interface com.slytechs.utils.collection.Validatable |
isValid |
| Methods inherited from interface com.slytechs.utils.collection.Validatable |
isValid |
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
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