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