Code example for ObjectInput

Methods: readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readObject, readShort