java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.VRecord
Direct Known Subclasses:
DcollectRecord

public class VRecord extends Data
  • Constructor Details

    • VRecord

      public VRecord(byte[] data)
      Constructs an VRecord using the specified byte array.
      Parameters:
      data - a byte array containing the record data. Ownership of the array passes to the record object i.e. a new array should be used to create each record, and no modifications should be made to the byte array after it is used to create the record.
    • VRecord

      public VRecord(VRecord record)
      Constructs a new VRecord from an existing record. The 2 records share the same data byte array.
      Parameters:
      record - an existing record
  • Method Details

    • recordLength

      public static int recordLength(byte[] data)
      Return the record length from the specified byte array.
      Parameters:
      data - a byte array
      Returns:
      int record length
    • recordLength

      public int recordLength()
      Return the length of the record.
      Returns:
      int record length