Code example for ObjectInput

Methods: readObject

0
        return this.vars.put(variable, expression);
    } 
 
    @SuppressWarnings("unchecked") 
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        this.vars = (Map<String, ValueExpression>) in.readObject();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeObject(this.vars);
    } 
}