com.sun.sgs.impl.service.data
Interface ClassSerialization


interface ClassSerialization

Controls how to serialize class descriptors.


Method Summary
 void checkInstantiable(ObjectStreamClass classDesc)
          Checks if it is permitted to instantiate an instance of the specified class.
 ObjectStreamClass readClassDescriptor(ObjectInputStream in)
          Reads a class descriptor from an object input stream.
 void writeClassDescriptor(ObjectStreamClass classDesc, ObjectOutputStream out)
          Writes a class descriptor to an object output stream.
 

Method Detail

writeClassDescriptor

void writeClassDescriptor(ObjectStreamClass classDesc,
                          ObjectOutputStream out)
                          throws IOException
Writes a class descriptor to an object output stream.

Parameters:
classDesc - the class descriptor
out - the object output stream
Throws:
IOException - if an I/O error occurs

checkInstantiable

void checkInstantiable(ObjectStreamClass classDesc)
                       throws IOException
Checks if it is permitted to instantiate an instance of the specified class.

Parameters:
classDesc - the class descriptor
Throws:
IOException - if it is not permitted to create instances of the specified class

readClassDescriptor

ObjectStreamClass readClassDescriptor(ObjectInputStream in)
                                      throws ClassNotFoundException,
                                             IOException
Reads a class descriptor from an object input stream.

Parameters:
in - the object input stream
Returns:
the class descriptor
Throws:
ClassNotFoundException - if a class referred to by the class descriptor representation cannot be found
IOException - if an I/O error occurs

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved