Code example for ObjectInput

Methods: readObject, readUTF

0
this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in
                .readObject()));
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeUTF(this.expr);
        out.writeUTF((this.expectedType != null) ? this.expectedType.getName()
                : ""); 
        out.writeObject(ReflectionUtil.toTypeNameArray(this.paramTypes));
    } 
}