Code example for ObjectInput

Methods: readBooleanreadObject

0
        this.name = name;
        this.breaking = breaking;
    } 
 
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        name = (String)in.readObject();
        breaking = in.readBoolean();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeObject( name );
        out.writeBoolean( breaking );
    } 
 
    /** 
     * There is not reason to clone this object since it is stateless. 
     * So a clone() call will return the instance itself. 
     * 
     * @see org.kie.rule.ConditionalElement#clone() 
     */