Code example for ObjectOutput

Methods: writeObject, writeUTF

0
    public void readExternal(ObjectInput in) throws IOException,
            ClassNotFoundException { 
        this.value = in.readObject();
        String type = in.readUTF();
        if (!"".equals(type)) {
            this.expectedType = ReflectionUtil.forName(type);
        } 
    } 
}