java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.VRecord
- Direct Known Subclasses:
DcollectRecord
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the length of the record.static int
recordLength
(byte[] data) Return the record length from the specified byte array.
-
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
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
-