Code example for ObjectOutput

Methods: writeUTF

0
            return value;
        } 
 
        public void writeExternal(ObjectOutput output) {
            try { 
                output.writeUTF(value);
            } catch (IOException e) {
                e.printStackTrace();
            } 
        } 
 
        public void readExternal(ObjectInput input) {
            try { 
                value = input.readUTF();
            } catch (IOException e) {
                e.printStackTrace();
            } 
        } 
    } 
 
    /**