java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.SmfRecord
com.blackhillsoftware.smf.smf0.Smf0Record
Mapping for SMF type 0 record.
Typically you would obtain Smf0Records by reading SmfRecords and using
Smf0Record.
from(SmfRecord)
to create the specialized record after determining the record type.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant: 0x80 = 128static final int
Constant: 0x00 = 0 -
Constructor Summary
ConstructorDescriptionSmf0Record
(byte[] data) Constructs an Smf0Record from the specified byte array.Smf0Record
(SmfRecord record) Constructs a new Smf0Record from an existing SMF record. -
Method Summary
Modifier and TypeMethodDescriptionstatic Smf0Record
from
(byte[] data) Constructs an Smf0Record from the specified byte array.static Smf0Record
Constructs a new Smf0Record from an existing SMF record.long
smf0buf()
SMF0BUF value.smf0dte()
SMF0DTE as a LocalDate.int
SMF0DTE raw value.int
SMF0_Flags value.int
smf0flg()
SMF0FLG value.smf0jwt()
SMF0JWT as a Duration.long
SMF0JWT raw value.double
SMF0JWT in seconds.int
smf0len()
SMF0LEN value.smf0mswt()
SMF0MSWT as a Duration.long
SMF0MSWT raw value.double
SMF0MSWT in seconds.smf0mtwt()
SMF0MTWT as a Duration.long
SMF0MTWT raw value.double
SMF0MTWT in seconds.int
SMF0_Num_CrypCtrs value.int
SMF0_Num_NNPICtrs value.int
smf0opt()
SMF0OPT value.smf0osl()
SMF0OSL value.long
smf0rs4k()
SMF0RS4K value, throws exception if SMF0RS4K overflows 64 bit signed integer.SMF0RS4K value as a BigInteger.boolean
Return true ifSMF0RS4K_Not_Valid
bit insmf0Flags()
is set.long
smf0rst()
SMF0RST value.int
smf0rsv()
SMF0RSV value.int
smf0rty()
SMF0RTY value.int
smf0seg()
SMF0SEG value.smf0sid()
SMF0SID value.smf0syn()
SMF0SYN value.smf0syp()
SMF0SYP value.int
smf0tbuf()
SMF0TBUF value.smf0tme()
SMF0TME as a LocalTime.long
SMF0TME raw valuesmf0tz()
SMF0TZ as ZoneOffset.int
SMF0TZ raw value.long
smf0vst()
SMF0VST value.Methods 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
-
SMFRCD0
public static final int SMFRCD0Constant: 0x00 = 0- See Also:
-
SMF0RS4K_Not_Valid
public static final int SMF0RS4K_Not_ValidConstant: 0x80 = 128- See Also:
-
-
Constructor Details
-
Smf0Record
public Smf0Record(byte[] data) Constructs an Smf0Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
Smf0Record
Constructs a new Smf0Record 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 Smf0Record from an existing SMF record. The 2 records share the same data byte array.- Parameters:
record
- an existing SMF record
-
from
Constructs an Smf0Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
smf0len
public int smf0len()SMF0LEN value.- Returns:
- int SMF0LEN value
-
smf0seg
public int smf0seg()SMF0SEG value.- Returns:
- int SMF0SEG value
-
smf0flg
public int smf0flg()SMF0FLG value.- Returns:
- int SMF0FLG value
-
smf0rty
public int smf0rty()SMF0RTY value.- Returns:
- int SMF0RTY value
-
smf0tme
SMF0TME as a LocalTime.- Returns:
- LocalTime SMF0TME Time
- See Also:
-
smf0tmeRawValue
public long smf0tmeRawValue()SMF0TME raw value- Returns:
- long SMF0TME value
-
smf0dte
SMF0DTE as a LocalDate.- Returns:
- LocalDate SMF0DTE Date
- See Also:
-
smf0dteRawValue
public int smf0dteRawValue()SMF0DTE raw value.- Returns:
- int SMF0DTE value
-
smf0sid
SMF0SID value.- Returns:
- String SMF0SID value
-
smf0jwt
SMF0JWT as a Duration.- Returns:
- Duration SMF0JWT
- See Also:
-
smf0jwtSeconds
public double smf0jwtSeconds()SMF0JWT in seconds.- Returns:
- double SMF0JWT converted to seconds
-
smf0jwtRawValue
public long smf0jwtRawValue()SMF0JWT raw value.- Returns:
- long SMF0JWT raw value
-
smf0buf
public long smf0buf()SMF0BUF value.- Returns:
- long SMF0BUF value
-
smf0vst
public long smf0vst()SMF0VST value.- Returns:
- long SMF0VST value
-
smf0opt
public int smf0opt()SMF0OPT value.- Returns:
- int SMF0OPT value
-
smf0rst
public long smf0rst()SMF0RST value.- Returns:
- long SMF0RST value
-
smf0rsv
public int smf0rsv()SMF0RSV value.- Returns:
- int SMF0RSV value
-
smf0osl
SMF0OSL value.- Returns:
- String SMF0OSL value
-
smf0syn
SMF0SYN value.- Returns:
- String SMF0SYN value
-
smf0syp
SMF0SYP value.- Returns:
- String SMF0SYP value
-
smf0tz
SMF0TZ as ZoneOffset.- Returns:
- ZoneOffset SMF0TZ
-
smf0tzRawValue
public int smf0tzRawValue()SMF0TZ raw value.- Returns:
- int SMF0TZ value
-
smf0mswt
SMF0MSWT as a Duration.- Returns:
- Duration SMF0MSWT
- See Also:
-
smf0mswtSeconds
public double smf0mswtSeconds()SMF0MSWT in seconds.- Returns:
- double SMF0MSWT converted to seconds
-
smf0mswtRawValue
public long smf0mswtRawValue()SMF0MSWT raw value.- Returns:
- long SMF0MSWT raw value
-
smf0mtwt
SMF0MTWT as a Duration.- Returns:
- Duration SMF0MTWT
- See Also:
-
smf0mtwtSeconds
public double smf0mtwtSeconds()SMF0MTWT in seconds.- Returns:
- double SMF0MTWT converted to seconds
-
smf0mtwtRawValue
public long smf0mtwtRawValue()SMF0MTWT raw value.- Returns:
- long SMF0MTWT raw value
-
smf0tbuf
public int smf0tbuf()SMF0TBUF value.- Returns:
- int SMF0TBUF value
-
smf0rs4k
public long smf0rs4k()SMF0RS4K value, throws exception if SMF0RS4K overflows 64 bit signed integer.- Returns:
- long SMF0RS4K
- Throws:
IllegalArgumentException
- If the value of SMF0RS4K exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF0RS4K). Usesmf0rs4kAsBigInteger()
if this is possible.
-
smf0rs4kAsBigInteger
SMF0RS4K value as a BigInteger.smf0rs4k()
may provide better performance if the value will not exceed the maximum value for a signed long.- Returns:
- BigInteger SMF0RS4K
-
smf0NumCrypCtrs
public int smf0NumCrypCtrs()SMF0_Num_CrypCtrs value.- Returns:
- int SMF0_Num_CrypCtrs value
-
smf0NumNnpiCtrs
public int smf0NumNnpiCtrs()SMF0_Num_NNPICtrs value.- Returns:
- int SMF0_Num_NNPICtrs value
-
smf0Flags
public int smf0Flags()SMF0_Flags value.- Returns:
- int SMF0_Flags value
-
smf0rs4kNotValid
public boolean smf0rs4kNotValid()Return true ifSMF0RS4K_Not_Valid
bit insmf0Flags()
is set.- Returns:
- boolean SMF0RS4K_Not_Valid bit is set in smf0Flags()
SMF0RS4K_Not_Valid = 0x80
-