コード例 #1
0
 /**
  * @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);
 }