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

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