private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException {
  s.defaultReadObject();
  attrMap=new HashMap();
  int count=s.readInt();
  Attribute attr;
  for (int i=0; i < count; i++) {
    attr=(Attribute)s.readObject();
    add(attr);
  }
}

private void readObject ( ObjectInputStream s ) throws ClassNotFoundException , IOException { s . defaultReadObject ( ) ; attrMap = new HashMap ( ) ; int count = s . readInt ( ) ; Attribute attr ; for ( int i = 0 ; i < count ; i ++ ) { attr = ( Attribute ) s . readObject ( ) ; add ( attr ) ; } }
reconstitute an instance from a stream that is , deserialize it ) .
