public interface SPWriter
SPWriterinterface provides a method for serializing objects into a block.
|Modifier and Type||Method and Description|
Writes an object into a block of the given
void writeObject(ShieldedPlug sp, int blockID, Object o)
ShieldedPlug. The class implementing this interface defines how the object is written.
ShieldedPluginto which data is written
blockID- ID of the block
o- the object to be written
IllegalArgumentException- if no block is defined with the given ID
IndexOutOfBoundsException- if the block length is lower than the size needed for object serialization