public final class Smf7Record extends SmfRecord
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 Details

  • 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

      public Smf7Record(SmfRecord record)
      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

      public static Smf7Record from(SmfRecord record)
      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

      public static Smf7Record from(byte[] data)
      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

      public LocalTime smf7tme()
      SMF7TME as a LocalTime.
      Returns:
      LocalTime SMF7TME Time
      See Also:
    • smf7tmeRawValue

      public long smf7tmeRawValue()
      SMF7TME raw value
      Returns:
      long SMF7TME value
    • smf7dte

      public LocalDate smf7dte()
      SMF7DTE as a LocalDate.
      Returns:
      LocalDate SMF7DTE Date
      See Also:
    • smf7dteRawValue

      public int smf7dteRawValue()
      SMF7DTE raw value.
      Returns:
      int SMF7DTE value
    • smf7sid

      public String smf7sid()
      SMF7SID value.
      Returns:
      String SMF7SID value
    • smf7nro

      public int smf7nro()
      SMF7NRO value.
      Returns:
      int SMF7NRO value
    • smf7stm

      public LocalTime smf7stm()
      SMF7STM as a LocalTime.
      Returns:
      LocalTime SMF7STM Time
      See Also:
    • smf7stmRawValue

      public long smf7stmRawValue()
      SMF7STM raw value
      Returns:
      long SMF7STM value
    • smf7std

      public LocalDate 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()
      Return true if SMF7NRF bit in smf7fl1() is set.
      Returns:
      boolean SMF7NRF bit is set in smf7fl1()

      SMF7NRF = 0x80

    • smf7lsd

      public boolean smf7lsd()
      Return true if SMF7LSD bit in smf7fl1() is set.
      Returns:
      boolean SMF7LSD bit is set in smf7fl1()

      SMF7LSD = 0x40

    • smf7drp

      public boolean smf7drp()
      Return true if SMF7DRP bit in smf7fl1() is set.
      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

      public String 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). Use smf7tblsAsBigInteger() if this is possible.
    • smf7tblsAsBigInteger

      public BigInteger 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