public class

SerializableConverter

extends AbstractReflectionConverter
java.lang.Object
   ↳ com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
     ↳ com.thoughtworks.xstream.converters.reflection.SerializableConverter
Known Direct Subclasses

Class Overview

Emulates the mechanism used by standard Java Serialization for classes that implement java.io.Serializable AND implement or inherit a custom readObject()/writeObject() method.

Supported features of serialization

  • readObject(), writeObject()
  • class inheritance
  • readResolve(), writeReplace()

Currently unsupported features

  • putFields(), writeFields(), readFields()
  • ObjectStreamField[] serialPersistentFields
  • ObjectInputValidation

Summary

[Expand]
Inherited Fields
From class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
Public Constructors
SerializableConverter(Mapper mapper, ReflectionProvider reflectionProvider)
Public Methods
boolean canConvert(Class type)
void doMarshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
Object doUnmarshal(Object result, HierarchicalStreamReader reader, UnmarshallingContext context)
Protected Methods
void doMarshalConditionally(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
Object doUnmarshalConditionally(Object result, HierarchicalStreamReader reader, UnmarshallingContext context)
List hierarchyFor(Class type)
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
From class java.lang.Object
From interface com.thoughtworks.xstream.converters.Converter
From interface com.thoughtworks.xstream.converters.ConverterMatcher

Public Constructors

public SerializableConverter (Mapper mapper, ReflectionProvider reflectionProvider)

Public Methods

public boolean canConvert (Class type)

public void doMarshal (Object source, HierarchicalStreamWriter writer, MarshallingContext context)

public Object doUnmarshal (Object result, HierarchicalStreamReader reader, UnmarshallingContext context)

Protected Methods

protected void doMarshalConditionally (Object source, HierarchicalStreamWriter writer, MarshallingContext context)

protected Object doUnmarshalConditionally (Object result, HierarchicalStreamReader reader, UnmarshallingContext context)

protected List hierarchyFor (Class type)