/**
  * @param cls Class.
  * @throws IOException If an I/O error occurs while writing stream header.
  */
 void writeClass(Class cls) throws IOException {
   GridOptimizedClassResolver.writeClass(this, cls, name2id);
 }
Пример #2
0
 /**
  * @return Class read.
  * @throws ClassNotFoundException If the class cannot be located.
  * @throws IOException If an I/O error occurs while writing stream header.
  */
 Class readClass() throws ClassNotFoundException, IOException {
   return GridOptimizedClassResolver.readClass(this, clsLdr, userPreregisteredId2Name);
 }