java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.SmfRecord
com.blackhillsoftware.smf.smf7.Smf7Record
Mapping for SMF type 7 record.
Typically you would obtain Smf7Records by reading SmfRecords and using
Smf7Record.
from(SmfRecord)
to create the specialized record after determining the record type.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSmf7Record
(byte[] data) Constructs an SMF7Record from the specified byte array.Smf7Record
(SmfRecord record) Constructs a new Smf7Record from an existing SMF record. -
Method Summary
Modifier and TypeMethodDescriptionstatic Smf7Record
from
(byte[] data) Constructs an Smf7Record from the specified byte array.static Smf7Record
Constructs a new Smf7Record from an existing SMF record.boolean
smf7drp()
smf7dte()
SMF7DTE as a LocalDate.int
SMF7DTE raw value.int
smf7dtyp()
SMF7DTYP value.int
SMF7DTYPX value.int
smf7fl1()
SMF7FL1 value.int
smf7flg()
SMF7FLG value.int
smf7len()
SMF7LEN value.boolean
smf7lsd()
smf7lsn()
SMF7LSN value.boolean
smf7nrf()
int
smf7nro()
SMF7NRO value.long
smf7nrox()
SMF7NROX value.int
smf7rsv1()
SMF7RSV1 value.int
smf7rty()
SMF7RTY value.int
smf7seg()
SMF7SEG value.smf7sid()
SMF7SID value.smf7std()
SMF7STD as a LocalDate.int
SMF7STD raw value.smf7stm()
SMF7STM as a LocalTime.long
SMF7STM raw valuelong
smf7tbls()
SMF7TBLS value, throws exception if SMF7TBLS overflows 64 bit signed integer.SMF7TBLS value as a BigInteger.smf7tme()
SMF7TME as a LocalTime.long
SMF7TME 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
-
SMFRCD7
public static final int SMFRCD7Constant: 0x00 = 0- See Also:
-
SMF7NRF
public static final int SMF7NRFConstant: 0x80 = 128- See Also:
-
SMF7LSD
public static final int SMF7LSDConstant: 0x40 = 64- See Also:
-
SMF7DRP
public static final int SMF7DRPConstant: 0x20 = 32- See Also:
-
-
Constructor Details
-
Smf7Record
public Smf7Record(byte[] data) Constructs an SMF7Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
Smf7Record
Constructs a new Smf7Record 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 Smf7Record from an existing SMF record. The 2 records share the same data byte array.- Parameters:
record
- an existing SMF record
-
from
Constructs an Smf7Record from the specified byte array.- Parameters:
data
- a byte array containing the SMF record data
-
smf7len
public int smf7len()SMF7LEN value.- Returns:
- int SMF7LEN value
-
smf7seg
public int smf7seg()SMF7SEG value.- Returns:
- int SMF7SEG value
-
smf7flg
public int smf7flg()SMF7FLG value.- Returns:
- int SMF7FLG value
-
smf7rty
public int smf7rty()SMF7RTY value.- Returns:
- int SMF7RTY value
-
smf7tme
SMF7TME as a LocalTime.- Returns:
- LocalTime SMF7TME Time
- See Also:
-
smf7tmeRawValue
public long smf7tmeRawValue()SMF7TME raw value- Returns:
- long SMF7TME value
-
smf7dte
SMF7DTE as a LocalDate.- Returns:
- LocalDate SMF7DTE Date
- See Also:
-
smf7dteRawValue
public int smf7dteRawValue()SMF7DTE raw value.- Returns:
- int SMF7DTE value
-
smf7sid
SMF7SID value.- Returns:
- String SMF7SID value
-
smf7nro
public int smf7nro()SMF7NRO value.- Returns:
- int SMF7NRO value
-
smf7stm
SMF7STM as a LocalTime.- Returns:
- LocalTime SMF7STM Time
- See Also:
-
smf7stmRawValue
public long smf7stmRawValue()SMF7STM raw value- Returns:
- long SMF7STM value
-
smf7std
SMF7STD as a LocalDate.- Returns:
- LocalDate SMF7STD Date
- See Also:
-
smf7stdRawValue
public int smf7stdRawValue()SMF7STD raw value.- Returns:
- int SMF7STD value
-
smf7fl1
public int smf7fl1()SMF7FL1 value.- Returns:
- int SMF7FL1 value
-
smf7nrf
public boolean smf7nrf()- Returns:
- boolean SMF7NRF bit is set in smf7fl1()
SMF7NRF = 0x80
-
smf7lsd
public boolean smf7lsd()- Returns:
- boolean SMF7LSD bit is set in smf7fl1()
SMF7LSD = 0x40
-
smf7drp
public boolean smf7drp()- Returns:
- boolean SMF7DRP bit is set in smf7fl1()
SMF7DRP = 0x20
-
smf7rsv1
public int smf7rsv1()SMF7RSV1 value.- Returns:
- int SMF7RSV1 value
-
smf7dtyp
public int smf7dtyp()SMF7DTYP value.- Returns:
- int SMF7DTYP value
-
smf7nrox
public long smf7nrox()SMF7NROX value.- Returns:
- long SMF7NROX value
-
smf7lsn
SMF7LSN value.- Returns:
- String SMF7LSN value
-
smf7tbls
public long smf7tbls()SMF7TBLS value, throws exception if SMF7TBLS overflows 64 bit signed integer.- Returns:
- long SMF7TBLS
- Throws:
IllegalArgumentException
- If the value of SMF7TBLS exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF7TBLS). Usesmf7tblsAsBigInteger()
if this is possible.
-
smf7tblsAsBigInteger
SMF7TBLS value as a BigInteger.smf7tbls()
may provide better performance if the value will not exceed the maximum value for a signed long.- Returns:
- BigInteger SMF7TBLS
-
smf7dtypx
public int smf7dtypx()SMF7DTYPX value.- Returns:
- int SMF7DTYPX value
-