public interface SPReader
SPReaderinterface provides a method for reconstructing objects from a block.
Object readObject(ShieldedPlug sp, int blockID) throws EmptyBlockException
ShieldedPlug. The class implementing this interface defines how the object is "read".
ShieldedPlugfrom which data is read
blockID- the ID of the block
IllegalArgumentException- if no block is defined with the given ID
IndexOutOfBoundsException- if the block length is lower than the size needed for object de-serialization
EmptyBlockException- if no data is available in the block