Code example for ObjectOutput

Methods: writeUTF

0
    SerializableAgendaGroup(AgendaGroup agendaGroup) {
        this.name = agendaGroup.getName();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        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();
    }