The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
(ObjectInput in)
| 274 | * restored cannot be found. |
| 275 | */ |
| 276 | public void readExternal(ObjectInput in) |
| 277 | throws IOException, ClassNotFoundException { |
| 278 | try { |
| 279 | parse(in.readUTF()); |
| 280 | } catch (MimeTypeParseException e) { |
| 281 | throw new IOException(e.toString()); |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | // below here be scary parsing related things |
| 286 |
no test coverage detected