|
Berkeley DB version 4.3.29 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A catalog of class description information for use during object serialization.
A catalog is used to store class descriptions separately from serialized
objects, to avoid redundantly stored information with each object.
When serialized objects are stored in a database, a StoredClassCatalog
should be used.
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. |
ObjectStreamClass |
getClassFormat(byte[] classID)
Return the ObjectStreamClass for the given class ID. |
byte[] |
getClassID(ObjectStreamClass classDesc)
Return the class ID for the current version of the given class description. |
Method Detail |
public void close() throws DatabaseException
DatabaseException
public byte[] getClassID(ObjectStreamClass classDesc) throws DatabaseException, ClassNotFoundException
getClassFormat(byte[])
.
This function causes a new class ID to be assigned if the class
description has changed.
classDesc
- The class description for which to return the
class ID.
DatabaseException
ClassNotFoundException
public ObjectStreamClass getClassFormat(byte[] classID) throws DatabaseException, ClassNotFoundException
classID
- The class ID for which to return the class format.
DatabaseException
ClassNotFoundException
|
Berkeley DB version 4.3.29 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |