java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.SmfRecord
com.blackhillsoftware.smf.smf2.Smf2Record
Mapping for SMF type 2 record.
Typically you would obtain Smf2Records by reading SmfRecords and using
Smf2Record.
from(SmfRecord)
to create the specialized record after determining the record type.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSmf2Record
(byte[] data) Constructs an Smf2Record from the specified byte array.Smf2Record
(SmfRecord record) Constructs a new Smf2Record from an existing SMF record. -
Method Summary
Modifier and TypeMethodDescriptionstatic Smf2Record
from
(byte[] data) Constructs an Smf2Record from the specified byte array.static Smf2Record
Constructs a new Smf2Record from an existing SMF record.smf2dte()
SMF2DTE as a LocalDate.int
SMF2DTE raw value.int
smf2flg()
SMF2FLG value.int
smf2len()
SMF2LEN value.int
smf2rty()
SMF2RTY value.int
smf2seg()
SMF2SEG value.smf2sid()
SMF2SID value.smf2tme()
SMF2TME as a LocalTime.long
SMF2TME raw valueMethods inherited from class com.blackhillsoftware.smf.SmfRecord
createSection, extendedHeader, extendedHeader, getTriplet, hasSubtypes, hasSubtypes, recordLength, recordLength, recordType, recordType, sanityCheck, smfDate, smfDate, smfDateTime, smfDateTime, smfhdr1Flag, smfhdr1Iefu86, smfhdr1Len, smfhdr1Len, smfhdr1Stcke, smfhdr1StckeRawValue, smfhdr1Tzo, smfhdr1TzoRawValue, smfhdr1Version, smfhdr1Version, smfTime, smfTime, subSystem, subSystem, subType, subType, system, system
-
Field Details
-
SMFRCD2
public static final int SMFRCD2Constant: 0x00 = 0- See Also:
-
-
Constructor Details
-
Smf2Record
public Smf2Record(byte[] data) Constructs an Smf2Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
Smf2Record
Constructs a new Smf2Record from an existing SMF record. The 2 records share the same data byte array.- Parameters:
record
- an existing SMF record
-
-
Method Details
-
from
Constructs a new Smf2Record from an existing SMF record. The 2 records share the same data byte array.- Parameters:
record
- an existing SMF record
-
from
Constructs an Smf2Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
smf2len
public int smf2len()SMF2LEN value.- Returns:
- int SMF2LEN value
-
smf2seg
public int smf2seg()SMF2SEG value.- Returns:
- int SMF2SEG value
-
smf2flg
public int smf2flg()SMF2FLG value.- Returns:
- int SMF2FLG value
-
smf2rty
public int smf2rty()SMF2RTY value.- Returns:
- int SMF2RTY value
-
smf2tme
SMF2TME as a LocalTime.- Returns:
- LocalTime SMF2TME Time
- See Also:
-
smf2tmeRawValue
public long smf2tmeRawValue()SMF2TME raw value- Returns:
- long SMF2TME value
-
smf2dte
SMF2DTE as a LocalDate.- Returns:
- LocalDate SMF2DTE Date
- See Also:
-
smf2dteRawValue
public int smf2dteRawValue()SMF2DTE raw value.- Returns:
- int SMF2DTE value
-
smf2sid
SMF2SID value.- Returns:
- String SMF2SID value
-