Code example for ObjectInput

Methods: readUTFreadObject

0
        this.id = id;
    } 
 
    public void readExternal(ObjectInput in) throws IOException,
                                            ClassNotFoundException {
        unit = (MVELCompilationUnit) in.readObject();
        id = in.readUTF();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeObject( unit );
        out.writeUTF( id );
    } 
     
    public MVELCompilationUnit getMVELCompilationUnit() { 
        return this.unit;
    } 
 
    public void compile(MVELDialectRuntimeData runtimeData) {
        expr = unit.getCompiledExpression( runtimeData );