Code example for ObjectInput

Methods: read, readBoolean, readInt, readObject