com.thoughtworks.xstream.converters.reflection
Class SerializationMethodInvoker

java.lang.Object
  extended by com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker

public class SerializationMethodInvoker
extends java.lang.Object

Convenience wrapper to invoke special serialization methods on objects (and perform reflection caching).

Author:
Joe Walnes

Constructor Summary
SerializationMethodInvoker()
           
 
Method Summary
 void callReadObject(java.lang.Class type, java.lang.Object object, java.io.ObjectInputStream stream)
           
 java.lang.Object callReadResolve(java.lang.Object result)
          Resolves an object as native serialization does by calling readResolve(), if available.
 void callWriteObject(java.lang.Class type, java.lang.Object instance, java.io.ObjectOutputStream stream)
           
 java.lang.Object callWriteReplace(java.lang.Object object)
           
 boolean supportsReadObject(java.lang.Class type, boolean includeBaseClasses)
           
 boolean supportsWriteObject(java.lang.Class type, boolean includeBaseClasses)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationMethodInvoker

public SerializationMethodInvoker()
Method Detail

callReadResolve

public java.lang.Object callReadResolve(java.lang.Object result)
Resolves an object as native serialization does by calling readResolve(), if available.


callWriteReplace

public java.lang.Object callWriteReplace(java.lang.Object object)

supportsReadObject

public boolean supportsReadObject(java.lang.Class type,
                                  boolean includeBaseClasses)

callReadObject

public void callReadObject(java.lang.Class type,
                           java.lang.Object object,
                           java.io.ObjectInputStream stream)

supportsWriteObject

public boolean supportsWriteObject(java.lang.Class type,
                                   boolean includeBaseClasses)

callWriteObject

public void callWriteObject(java.lang.Class type,
                            java.lang.Object instance,
                            java.io.ObjectOutputStream stream)


Copyright © 2004-2012 XStream. All Rights Reserved.