Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException {
   // We must use lookupAny because not all classes can be Serializable.
   return ObjectStreamClass.lookupAny(readClass());
 }
 /** {@inheritDoc} */
 @Override
 protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException {
   writeClass(desc.forClass());
 }
Ejemplo n.º 3
0
 /** {@inheritDoc} */
 @Override
 protected Class<?> resolveClass(ObjectStreamClass desc)
     throws IOException, ClassNotFoundException {
   return desc.forClass();
 }