Class SerializationMembers
java.lang.Object
com.thoughtworks.xstream.core.util.SerializationMembers
- All Implemented Interfaces:
Caching
Convenience wrapper to invoke special serialization methods on objects (and perform reflection caching).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
callReadObject
(Class type, Object object, ObjectInputStream stream) callReadResolve
(Object result) Resolves an object as native serialization does by calling readResolve(), if available.void
callWriteObject
(Class type, Object instance, ObjectOutputStream stream) callWriteReplace
(Object object) void
private Method
private Method
private Method
getRRMethod
(Class type, String name) boolean
supportsReadObject
(Class type, boolean includeBaseClasses) boolean
supportsWriteObject
(Class type, boolean includeBaseClasses)
-
Field Details
-
NO_METHOD
-
EMPTY_ARGS
-
EMPTY_CLASSES
-
NO_FIELDS
-
PERSISTENT_FIELDS_MODIFIER
private static final int PERSISTENT_FIELDS_MODIFIER- See Also:
-
OBJECT_TYPE_FIELDS
-
declaredCache
-
resRepCache
-
fieldCache
-
-
Constructor Details
-
SerializationMembers
public SerializationMembers()
-
-
Method Details
-
callReadResolve
Resolves an object as native serialization does by calling readResolve(), if available. -
callWriteReplace
-
supportsReadObject
-
callReadObject
-
supportsWriteObject
-
callWriteObject
-
getMethod
-
getMethod
-
getRRMethod
-
getSerializablePersistentFields
-
flushCache
public void flushCache()- Specified by:
flushCache
in interfaceCaching
-