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

    • SMFRCD0

      public static final int SMFRCD0
      Constant: 0x00 = 0
      See Also:
    • SMF0RS4K_Not_Valid

      public static final int SMF0RS4K_Not_Valid
      Constant: 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

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

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

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

      public LocalTime smf0tme()
      SMF0TME as a LocalTime.
      Returns:
      LocalTime SMF0TME Time
      See Also:
    • smf0tmeRawValue

      public long smf0tmeRawValue()
      SMF0TME raw value
      Returns:
      long SMF0TME value
    • smf0dte

      public LocalDate smf0dte()
      SMF0DTE as a LocalDate.
      Returns:
      LocalDate SMF0DTE Date
      See Also:
    • smf0dteRawValue

      public int smf0dteRawValue()
      SMF0DTE raw value.
      Returns:
      int SMF0DTE value
    • smf0sid

      public String smf0sid()
      SMF0SID value.
      Returns:
      String SMF0SID value
    • smf0jwt

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

      public String smf0osl()
      SMF0OSL value.
      Returns:
      String SMF0OSL value
    • smf0syn

      public String smf0syn()
      SMF0SYN value.
      Returns:
      String SMF0SYN value
    • smf0syp

      public String smf0syp()
      SMF0SYP value.
      Returns:
      String SMF0SYP value
    • smf0tz

      public ZoneOffset smf0tz()
      SMF0TZ as ZoneOffset.
      Returns:
      ZoneOffset SMF0TZ
    • smf0tzRawValue

      public int smf0tzRawValue()
      SMF0TZ raw value.
      Returns:
      int SMF0TZ value
    • smf0mswt

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

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

      public BigInteger 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 if SMF0RS4K_Not_Valid bit in smf0Flags() is set.
      Returns:
      boolean SMF0RS4K_Not_Valid bit is set in smf0Flags()

      SMF0RS4K_Not_Valid = 0x80