public static void loadRegistrations(DataInput in) throws IOException {
  int instId;
  while ((instId=in.readInt()) != 0) {
    Class instClass=null;
    Class instantiatedClass=null;
    boolean skip=false;
    try {
      instClass=DataSerializer.readClass(in);
    }
 catch (    ClassNotFoundException ex) {
      skip=true;
    }
    try {
      instantiatedClass=DataSerializer.readClass(in);
    }
 catch (    ClassNotFoundException ex) {
      skip=true;
    }
    if (skip) {
      continue;
    }
    register(newInstance(instClass,instantiatedClass,instId),true);
  }
}

public static void loadRegistrations ( DataInput in ) throws IOException { int instId ; while ( ( instId = in . readInt ( ) ) != 0 ) { Class instClass = null ; Class instantiatedClass = null ; boolean skip = false ; try { instClass = DataSerializer . readClass ( in ) ; } catch ( ClassNotFoundException ex ) { skip = true ; } try { instantiatedClass = DataSerializer . readClass ( in ) ; } catch ( ClassNotFoundException ex ) { skip = true ; } if ( skip ) { continue ; } register ( newInstance ( instClass , instantiatedClass , instId ) , true ) ; } }
read the data from in and register it with this class .
