Code example for ObjectOutput

Methods: writeUTF

0
        this.name = rule.getName();
        this.packageName = rule.getPackageName();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeUTF( name );
        out.writeUTF( packageName );
    } 
 
    public void readExternal(ObjectInput in) throws IOException,
                                            ClassNotFoundException { 
        name = in.readUTF();
        packageName = in.readUTF();
    } 
 
    public String getName() {
        return this.name;
    } 
 
    public String getPackageName() {
        return this.packageName;