public class FAR extends java.lang.Object implements DataRecord
Constructor and Description |
---|
FAR() |
Modifier and Type | Method and Description |
---|---|
static void |
addType() |
int |
compareTo(DataRecord o) |
short |
getCpu_type() |
java.lang.String |
getDescription() |
int |
getRecordNumber() |
java.lang.String |
getRecordType() |
DataFile |
getSourceFile() |
short |
getStdf_ver() |
void |
readRecord(java.nio.ByteBuffer buffer) |
void |
setCpu_type(short newValue) |
void |
setRecordNumber(int recordNumber) |
void |
setSourceFile(DataFile newSource) |
void |
setStdf_ver(short newValue) |
java.lang.String |
toString() |
void |
writeRecord(SaveInfo saveInfo,
java.nio.ByteBuffer bb)
Writes this record into a ByteBuffer, using fieldReader
for platform-specific formatting
|
public short getCpu_type()
public void setCpu_type(short newValue)
public short getStdf_ver()
public void setStdf_ver(short newValue)
public int getRecordNumber()
getRecordNumber
in interface DataRecord
public void setRecordNumber(int recordNumber)
setRecordNumber
in interface DataRecord
recordNumber
- sets the number (index) of this data recordpublic void readRecord(java.nio.ByteBuffer buffer)
readRecord
in interface DataRecord
public void writeRecord(SaveInfo saveInfo, java.nio.ByteBuffer bb)
DataRecord
writeRecord
in interface DataRecord
saveInfo
- metadata about how the data should be savedbb
- output buffer that can be written into an output filepublic java.lang.String getDescription()
getDescription
in interface DataRecord
String
describing this type of recordpublic java.lang.String getRecordType()
getRecordType
in interface DataRecord
String
identifying what type of record this ispublic int compareTo(DataRecord o)
public DataFile getSourceFile()
getSourceFile
in interface DataRecord
DataFile
from which this was readpublic void setSourceFile(DataFile newSource)
setSourceFile
in interface DataRecord
newSource
- The DataFile
from which this was readpublic java.lang.String toString()
toString
in class java.lang.Object
public static void addType()