Top Description Fields Constructors Methods
com.thoughtworks.xstream.core.util

public Class SerializationMembers

extends Object
implements Caching
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.core.Caching
Imports
java.io.ObjectInputStream, .ObjectOutputStream, .ObjectStreamField, java.lang.reflect.Field, .InvocationTargetException, .Method, .Modifier, java.util.Arrays, .Collections, .HashMap, .Map, com.thoughtworks.xstream.converters.ConversionException, .ErrorWritingException, com.thoughtworks.xstream.converters.reflection.ObjectAccessException, com.thoughtworks.xstream.core.Caching

Convenience wrapper to invoke special serialization methods on objects (and perform reflection caching).
Authors
Joe Walnes, Jörg Schaible

Field Summary

Modifier and TypeField and Description
private Map<K, V>
private static final Object[]
private static final Class<T>[]
private final Map<K, V>
private static final Map<K, V>
private static final Method
private static final FastField[]
private static final int
private Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
callReadObject(final Class<T> type, final Object object, final ObjectInputStream stream)

public Object
callReadResolve(final Object result)

Resolves an object as native serialization does by calling readResolve(), if available.

public void
callWriteObject(final Class<T> type, final Object instance, final ObjectOutputStream stream)

public Object
callWriteReplace(final Object object)

public void
private Method
getMethod(Class<T> type, String name, Class<T>[] parameterTypes, boolean includeBaseclasses)

private Method
getMethod(Class<T> type, String name, Class<T>[] parameterTypes)

private Method
getRRMethod(final Class<T> type, final String name)

public Map<K, V>
public boolean
supportsReadObject(final Class<T> type, final boolean includeBaseClasses)

public boolean
supportsWriteObject(final Class<T> type, final boolean includeBaseClasses)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

declaredCacheback to summary
private Map<K, V> declaredCache
EMPTY_ARGSback to summary
private static final Object[] EMPTY_ARGS
EMPTY_CLASSESback to summary
private static final Class<T>[] EMPTY_CLASSES
fieldCacheback to summary
private final Map<K, V> fieldCache
NO_FIELDSback to summary
private static final Map<K, V> NO_FIELDS
NO_METHODback to summary
private static final Method NO_METHOD
OBJECT_TYPE_FIELDSback to summary
private static final FastField[] OBJECT_TYPE_FIELDS
PERSISTENT_FIELDS_MODIFIERback to summary
private static final int PERSISTENT_FIELDS_MODIFIER
resRepCacheback to summary
private Map<K, V> resRepCache

Constructor Detail

SerializationMembersback to summary
public SerializationMembers()

Method Detail

callReadObjectback to summary
public void callReadObject(final Class<T> type, final Object object, final ObjectInputStream stream)
callReadResolveback to summary
public Object callReadResolve(final Object result)

Resolves an object as native serialization does by calling readResolve(), if available.

callWriteObjectback to summary
public void callWriteObject(final Class<T> type, final Object instance, final ObjectOutputStream stream)
callWriteReplaceback to summary
public Object callWriteReplace(final Object object)
flushCacheback to summary
public void flushCache()

Implements com.thoughtworks.xstream.core.Caching.flushCache.

getMethodback to summary
private Method getMethod(Class<T> type, String name, Class<T>[] parameterTypes, boolean includeBaseclasses)
getMethodback to summary
private Method getMethod(Class<T> type, String name, Class<T>[] parameterTypes)
getRRMethodback to summary
private Method getRRMethod(final Class<T> type, final String name)
getSerializablePersistentFieldsback to summary
public Map<K, V> getSerializablePersistentFields(final Class<T> type)
supportsReadObjectback to summary
public boolean supportsReadObject(final Class<T> type, final boolean includeBaseClasses)
supportsWriteObjectback to summary
public boolean supportsWriteObject(final Class<T> type, final boolean includeBaseClasses)