|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.recman.BlockIo
public final class BlockIo
This class wraps a page-sized byte array and provides methods to read and write data to and from it. The readers and writers are just the ones that the rest of the toolkit needs, nothing else. Values written are compatible with java.io routines.
DataInput
,
DataOutput
,
Serialized FormField Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
BlockIo()
Default constructor for serialization |
Method Summary | |
---|---|
BlockView |
getView()
Returns the current view of the block. |
byte |
readByte(int pos)
Reads a byte from the indicated position |
void |
readExternal(java.io.ObjectInput in)
|
int |
readInt(int pos)
Reads an int from the indicated position |
long |
readLong(int pos)
Reads a long from the indicated position |
short |
readShort(int pos)
Reads a short from the indicated position |
void |
setView(BlockView view)
Sets the current view of the block. |
java.lang.String |
toString()
|
void |
writeByte(int pos,
byte value)
Writes a byte to the indicated position |
void |
writeExternal(java.io.ObjectOutput out)
|
void |
writeInt(int pos,
int value)
Writes an int to the indicated position |
void |
writeLong(int pos,
long value)
Writes a long to the indicated position |
void |
writeShort(int pos,
short value)
Writes a short to the indicated position |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public BlockIo()
Method Detail |
---|
public BlockView getView()
public void setView(BlockView view)
public byte readByte(int pos)
public void writeByte(int pos, byte value)
public short readShort(int pos)
public void writeShort(int pos, short value)
public int readInt(int pos)
public void writeInt(int pos, int value)
public long readLong(int pos)
public void writeLong(int pos, long value)
public java.lang.String toString()
toString
in class java.lang.Object
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |