|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bristol.star.cdf.record.Pointer
public class Pointer
Keeps track of a file offset.
Constructor Summary | |
---|---|
Pointer(long value)
Constructor. |
Method Summary | |
---|---|
long |
get()
Returns this pointer's current value. |
long |
getAndIncrement(int increment)
Returns this pointer's current value and increments it by a given step. |
void |
set(long value)
Sets this pointer's current value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pointer(long value)
value
- initial valueMethod Detail |
---|
public long get()
public long getAndIncrement(int increment)
increment
- amount to increase value by
public void set(long value)
value
- new value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |