public class RecordPlan
extends java.lang.Object
Constructor and Description |
---|
RecordPlan(long start,
long recSize,
int recType,
Buf buf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Pointer |
createContentPointer()
Returns a pointer initially pointing at the first content byte of
the record represented by this plan.
|
Buf |
getBuf()
Returns the buffer containing the record data.
|
long |
getReadCount(Pointer ptr)
Returns the number of bytes in this record read (or skipped) by the
current state of a given pointer.
|
long |
getRecordSize()
Returns the size of the record in bytes.
|
int |
getRecordType()
Returns the type code identifying what kind of CDF record it is.
|
public RecordPlan(long start, long recSize, int recType, Buf buf)
start
- offset into buffer of record startrecSize
- number of bytes comprising recordrecType
- integer record type fieldbuf
- buffer containing record bytespublic long getRecordSize()
public int getRecordType()
public Buf getBuf()
public Pointer createContentPointer()
public long getReadCount(Pointer ptr)
ptr
- pointer