private static Class<?> readClass(DataInput di) throws IOException {
  int len=di.readInt();
  byte[] bytes=new byte[len];
  di.readFully(bytes);
  String className=new String(bytes);
  Class<?> result=null;
  try {
    result=InternalDataSerializer.getCachedClass(className);
  }
 catch (  ClassNotFoundException ignore) {
  }
  return result;
}

private static Class < ? > readClass ( DataInput di ) throws IOException { int len = di . readInt ( ) ; byte [ ] bytes = new byte [ len ] ; di . readFully ( bytes ) ; String className = new String ( bytes ) ; Class < ? > result = null ; try { result = InternalDataSerializer . getCachedClass ( className ) ; } catch ( ClassNotFoundException ignore ) { } return result ; }
reads a class name from the given input stream , as written by writeclass , and loads the class .
