public class SerializableConverter extends AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
Constructor and Description |
---|
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
Deprecated.
|
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
java.lang.ClassLoader classLoader)
Deprecated.
|
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider,
ClassLoaderReference classLoaderReference)
Construct a SerializableConverter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.
|
void |
doMarshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context) |
protected void |
doMarshalConditionally(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context) |
java.lang.Object |
doUnmarshal(java.lang.Object result,
HierarchicalStreamReader reader,
UnmarshallingContext context) |
protected java.lang.Object |
doUnmarshalConditionally(java.lang.Object result,
HierarchicalStreamReader reader,
UnmarshallingContext context) |
protected java.util.List |
hierarchyFor(java.lang.Class type) |
protected void |
marshalUnserializableParent(HierarchicalStreamWriter writer,
MarshallingContext context,
java.lang.Object replacedSource) |
canAccess, flushCache, instantiateNewInstance, marshal, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
public SerializableConverter(Mapper mapper, ReflectionProvider reflectionProvider, ClassLoaderReference classLoaderReference)
mapper
- the mapper chain instancereflectionProvider
- the reflection providerclassLoaderReference
- the reference to the ClassLoader
of the XStream instancepublic SerializableConverter(Mapper mapper, ReflectionProvider reflectionProvider, java.lang.ClassLoader classLoader)
SerializableConverter(Mapper, ReflectionProvider, ClassLoaderReference)
public SerializableConverter(Mapper mapper, ReflectionProvider reflectionProvider)
SerializableConverter(Mapper, ReflectionProvider, ClassLoaderReference)
public boolean canConvert(java.lang.Class type)
ConverterMatcher
type
- the Class representing the object type to be convertedpublic void doMarshal(java.lang.Object source, HierarchicalStreamWriter writer, MarshallingContext context)
doMarshal
in class AbstractReflectionConverter
protected void marshalUnserializableParent(HierarchicalStreamWriter writer, MarshallingContext context, java.lang.Object replacedSource)
protected java.util.List hierarchyFor(java.lang.Class type)
public java.lang.Object doUnmarshal(java.lang.Object result, HierarchicalStreamReader reader, UnmarshallingContext context)
doUnmarshal
in class AbstractReflectionConverter
protected void doMarshalConditionally(java.lang.Object source, HierarchicalStreamWriter writer, MarshallingContext context)
protected java.lang.Object doUnmarshalConditionally(java.lang.Object result, HierarchicalStreamReader reader, UnmarshallingContext context)
Copyright © 2004–2022 XStream. All rights reserved.