Package com.silabs.na.pcap
Class SectionHeaderBlock
- java.lang.Object
-
- com.silabs.na.pcap.SectionHeaderBlock
-
public class SectionHeaderBlock extends java.lang.ObjectSection header block starts the pcapng files and contains sections.
-
-
Constructor Summary
Constructors Constructor Description SectionHeaderBlock(boolean bigEndian, int major, int minor, int sectionLength)Creates a section header block with a given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBigEndian()Returns the information on endiannes of this section.booleanisLittleEndian()Returns the information on endiannes of this section.intmajorVersion()Major version of the PCAPNG format used.intminorVersion()Minor version of the PCAPNG format used.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SectionHeaderBlock
public SectionHeaderBlock(boolean bigEndian, int major, int minor, int sectionLength)Creates a section header block with a given values.- Parameters:
bigEndian- If true, then this section is big endian.major- Major version of the PCAPNG format used.minor- Minor version of a PCAPNG format used.sectionLength- Length of a section, in bytes. May be -1, "indicating unspecified".
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
majorVersion
public int majorVersion()
Major version of the PCAPNG format used.- Returns:
- major version
-
minorVersion
public int minorVersion()
Minor version of the PCAPNG format used.- Returns:
- minor version
-
isBigEndian
public boolean isBigEndian()
Returns the information on endiannes of this section.- Returns:
- true, if this section is big endian, false if little-endian
-
isLittleEndian
public boolean isLittleEndian()
Returns the information on endiannes of this section.- Returns:
- true, if this section is little endian, false if big endian
-
-