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

  • 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

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

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

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

      public LocalTime smf2tme()
      SMF2TME as a LocalTime.
      Returns:
      LocalTime SMF2TME Time
      See Also:
    • smf2tmeRawValue

      public long smf2tmeRawValue()
      SMF2TME raw value
      Returns:
      long SMF2TME value
    • smf2dte

      public LocalDate smf2dte()
      SMF2DTE as a LocalDate.
      Returns:
      LocalDate SMF2DTE Date
      See Also:
    • smf2dteRawValue

      public int smf2dteRawValue()
      SMF2DTE raw value.
      Returns:
      int SMF2DTE value
    • smf2sid

      public String smf2sid()
      SMF2SID value.
      Returns:
      String SMF2SID value