The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings and arrays. @param out the ObjectOutput object to write to @exception IOException Includes any I/O
(ObjectOutput out)
| 258 | * @exception IOException Includes any I/O exceptions that may occur |
| 259 | */ |
| 260 | public void writeExternal(ObjectOutput out) throws IOException { |
| 261 | out.writeUTF(toString()); |
| 262 | out.flush(); |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * The object implements the readExternal method to restore its |