Modifier and Type | Method and Description |
---|---|
void |
ShieldedPlug.read(int blockID,
byte[] data)
Fills the given array with data from the block with the given ID.
|
void |
ShieldedPlug.read(int blockID,
byte[] data,
int destOffset)
Fills the given array with
block.length bytes from the block with the given ID. |
double |
ShieldedPlug.readDouble(int blockID)
Reads eight input bytes from the block with the given ID and returns a
double value.The way the double is built from the eight bytes is platform dependent. |
float |
ShieldedPlug.readFloat(int blockID)
Reads four input bytes from the block with the given ID and returns a
float value.The way the float is built from the four bytes is platform dependent. |
int |
ShieldedPlug.readInt(int blockID)
Reads four input bytes from the block with the given ID and returns an
int value.The way the int is built from the four bytes is platform dependent. |
long |
ShieldedPlug.readLong(int blockID)
Reads eight input bytes from the block with the given ID and returns a
long value.The way the long is built from the eight bytes is platform dependent. |
java.lang.Object |
ShieldedPlug.readObject(int blockID)
Invokes the
readObject method of the SPReader registered for the block with the given ID. |
java.lang.Object |
SPReader.readObject(ShieldedPlug sp,
int blockID)
Reads and returns an object from a block of the given
ShieldedPlug . |