Code example for ObjectInput

Methods: readUTF

0
        out.writeUTF( this.name );
    } 
     
    public void readExternal(ObjectInput in) throws IOException,
                                            ClassNotFoundException { 
        this.name = in.readUTF();
    } 
     
    public String getName() {
        return this.name;
    } 
 
    public void clear() { 
        throw new UnsupportedOperationException();
    } 
 
    public void setFocus() { 
        throw new UnsupportedOperationException();
    }     
 
}