|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassCatalog
Represents a catalog of class information for use in object serialization so that class descriptions can be stored separately from serialized objects.
This information is used for serialization of class descriptors or
java.io.ObjectStreamClass objects, each of which represents a unique class
format. For each unique format, a unique class ID is assigned by the
catalog. The class ID can then be used in the serialization stream in place
of the full class information. When used with SerialInput
and
SerialOutput
or any of the serial bindings, the use of the catalog
is transparent to the application.
Method Summary | |
---|---|
void |
close()
Close a catalog database and release any cached resources. |
java.io.ObjectStreamClass |
getClassFormat(byte[] classID)
Return the ObjectStreamClass for the given class ID. |
java.io.ObjectStreamClass |
getClassFormat(java.lang.String className)
Return the ObjectStreamClass for the given class name. |
byte[] |
getClassID(java.lang.String className)
Return the class ID for the current version of the given class name. |
Method Detail |
---|
void close() throws java.io.IOException
java.io.IOException
byte[] getClassID(java.lang.String className) throws java.io.IOException, java.lang.ClassNotFoundException
getClassFormat(byte[])
.
This function causes a new class ID to be assigned if the class
description has changed.
className
- The fully qualified class name for which to return the
class ID.
java.io.IOException
java.lang.ClassNotFoundException
java.io.ObjectStreamClass getClassFormat(java.lang.String className) throws java.io.IOException, java.lang.ClassNotFoundException
className
- The fully qualified class name for which to return the
class format.
java.io.IOException
java.lang.ClassNotFoundException
java.io.ObjectStreamClass getClassFormat(byte[] classID) throws java.io.IOException, java.lang.ClassNotFoundException
classID
- The class ID for which to return the class format.
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |