Code example for ObjectInput

Methods: readBoolean

0
        this.setText( id );
    } 
 
    public void readExternal(ObjectInput in) throws IOException,
            ClassNotFoundException { 
        super.readExternal( in );
        breaking = in.readBoolean();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        super.writeExternal( out );
        out.writeBoolean( breaking );
    } 
 
    public String getName() {
        return getText(); 
    } 
 
    public void setName( String name) {
        setText( name );
    }