private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   ObjectInputStream.GetField fields = stream.readFields();
   int addr = fields.get("address", 0); // $NON-NLS-1$
   ipaddress = new byte[4];
   intToBytes(addr, ipaddress, 0);
   hostName = (String) fields.get("hostName", null); // $NON-NLS-1$
   family = fields.get("family", 2); // $NON-NLS-1$
 }