|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bristol.star.cdf.record.RecordPlan
public class RecordPlan
Records basic information about the position, extent and type of a CDF record.
Constructor Summary | |
---|---|
RecordPlan(long start,
long recSize,
int recType,
Buf buf)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 bytesMethod Detail |
---|
public long getRecordSize()
public int getRecordType()
public Buf getBuf()
public Pointer createContentPointer()
public long getReadCount(Pointer ptr)
ptr
- pointer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |