public static class RecordsFileImpl.RecordTypeImpl extends java.lang.Object implements RecordsFile.RecordType
| Constructor and Description |
|---|
RecordTypeImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int type,
int size) |
RecordsFile.Record |
createRecord() |
static RecordsFile.RecordType |
from(byte[] bytes) |
static RecordsFile.RecordType |
from(java.nio.ByteBuffer bytes) |
int |
getFieldCount() |
int |
getFieldOffset(int n) |
int |
getFieldSize(int n) |
int |
getFieldType(int n) |
int |
getSize() |
byte[] |
toBytes() |
public void add(int type,
int size)
public int getSize()
getSize in interface RecordsFile.RecordTypepublic int getFieldCount()
getFieldCount in interface RecordsFile.RecordTypepublic int getFieldType(int n)
getFieldType in interface RecordsFile.RecordTypepublic int getFieldSize(int n)
getFieldSize in interface RecordsFile.RecordTypepublic int getFieldOffset(int n)
getFieldOffset in interface RecordsFile.RecordTypepublic RecordsFile.Record createRecord()
createRecord in interface RecordsFile.RecordTypepublic byte[] toBytes()
toBytes in interface RecordsFile.RecordTypepublic static RecordsFile.RecordType from(java.nio.ByteBuffer bytes)
from in interface RecordsFile.RecordTypepublic static RecordsFile.RecordType from(byte[] bytes)
from in interface RecordsFile.RecordType