Code example for ObjectOutput

Methods: writeBoolean, writeDouble, writeInt, writeLong, writeObject, writeUTF