public interface SPReader
SPReader interface provides a method for reconstructing objects from a block.| Modifier and Type | Method and Description |
|---|---|
Object |
readObject(ShieldedPlug sp,
int blockID)
Reads and returns an object from a block of the given
ShieldedPlug. |
Object readObject(ShieldedPlug sp, int blockID) throws EmptyBlockException
ShieldedPlug. The class implementing this interface
defines how the object is "read".sp - the ShieldedPlug from which data is readblockID - the ID of the blockShieldedPlugIllegalArgumentException - if no block is defined with the given IDIndexOutOfBoundsException - if the block length is lower than the size needed for object de-serializationEmptyBlockException - if no data is available in the block