Uses of Interface
com.thoughtworks.xstream.converters.Converter
Packages that use Converter
Package
Description
Converters for common basic types in Java.
Converters for collection objects that write their items as
nested elements, such as arrays, Lists, Sets and Maps.
Extra converters that may not be enabled in XStream by default.
Extra converters for the java.time package.
-
Uses of Converter in com.thoughtworks.xstream
Methods in com.thoughtworks.xstream with parameters of type ConverterModifier and TypeMethodDescriptionvoid
XStream.registerConverter
(Converter converter) void
XStream.registerConverter
(Converter converter, int priority) void
XStream.registerLocalConverter
(Class definedIn, String fieldName, Converter converter) Register a localConverter
for a field. -
Uses of Converter in com.thoughtworks.xstream.annotations
Classes in com.thoughtworks.xstream.annotations that implement ConverterFields in com.thoughtworks.xstream.annotations with type parameters of type ConverterModifier and TypeFieldDescriptionprivate final Map
<Class<? extends ConverterMatcher>, Converter> AnnotationReflectionConverter.cachedConverters
Deprecated.Methods in com.thoughtworks.xstream.annotations that return ConverterModifier and TypeMethodDescriptionprivate Converter
AnnotationReflectionConverter.newInstance
(Class<? extends ConverterMatcher> type) Deprecated.Instantiates a converter using its default constructor. -
Uses of Converter in com.thoughtworks.xstream.converters
Classes in com.thoughtworks.xstream.converters that implement ConverterModifier and TypeClassDescriptionclass
Wrapper to convert aSingleValueConverter
into aConverter
.Methods in com.thoughtworks.xstream.converters that return ConverterModifier and TypeMethodDescriptionConverterLookup.lookupConverterForType
(Class type) Lookup a converter for a specific type.Methods in com.thoughtworks.xstream.converters with parameters of type ConverterModifier and TypeMethodDescriptionvoid
MarshallingContext.convertAnother
(Object nextItem, Converter converter) Converts another object using the specified converterUnmarshallingContext.convertAnother
(Object current, Class type, Converter converter) void
ConverterRegistry.registerConverter
(Converter converter, int priority) -
Uses of Converter in com.thoughtworks.xstream.converters.basic
Classes in com.thoughtworks.xstream.converters.basic that implement ConverterModifier and TypeClassDescriptionclass
Converts a char primitive or java.lang.Character wrapper to a String.class
Special converter to signify nulls at the root level. -
Uses of Converter in com.thoughtworks.xstream.converters.collections
Classes in com.thoughtworks.xstream.converters.collections that implement ConverterModifier and TypeClassDescriptionclass
Base helper class for converters that need to handle collections of items (arrays, Lists, Maps, etc).class
Converts an array of objects or primitives to XML, using a nested child element for each item.class
Converts a java.util.BitSet to XML, as a compact comma delimited list of ones and zeros.class
Converts a char[] to XML, storing the contents as a single String.class
Converts most common Collections (Lists and Sets) to XML, specifying a nested element for each item.class
Converts a java.util.Map to XML, specifying an 'entry' element with 'key' and 'value' children.class
Special converter for java.util.Properties that stores properties in a more compact form than java.util.Map.class
Converts singleton collections (list and set) to XML, specifying a nested element for the item.class
Converts a singleton map to XML, specifying an 'entry' element with 'key' and 'value' children.class
Converts a java.util.TreeMap to XML, and serializes the associated java.util.Comparator.class
Converts a java.util.TreeSet to XML, and serializes the associated java.util.Comparator. -
Uses of Converter in com.thoughtworks.xstream.converters.enums
Classes in com.thoughtworks.xstream.converters.enums that implement ConverterModifier and TypeClassDescriptionclass
Converter for JDK 1.5 enums.class
Serializes an Java 5 EnumMap, including the type of Enum it's for.class
Serializes a Java 5 EnumSet. -
Uses of Converter in com.thoughtworks.xstream.converters.extended
Classes in com.thoughtworks.xstream.converters.extended that implement ConverterModifier and TypeClassDescriptionclass
Converts anActivationDataFlavor
.class
Converts an AtomicBoolean type.class
Converts an AtomicInteger type.class
Converts an AtomicLong type.class
Converts an AtomicReference type.class
Converts a java.awt.Color to XML, using four nested elements: red, green, blue, alpha.class
Converts a dynamic proxy to XML, storing the implemented interfaces and handler.class
Converts a byte array by default to a single Base64 encoding string.class
class
Converts a java.util.GregorianCalendar to XML.class
Converts a java.lang.reflect.Field to XML.class
Converts a java.lang.reflect.Method to XML.class
A converter for Swing LookAndFeel implementations.class
An array converter that uses predefined names for its items.class
A collection converter that uses predefined names for its items.class
A map converter that uses predefined names for its elements.class
Converts an AtomicReference type.class
Converts an AtomicReference type.class
Converts an AtomicReference type.class
Converts an AtomicReference type.class
Ensures java.util.regex.Pattern is compiled upon deserialization.class
Converts aSubject
instance.class
Converter for Throwable (and Exception) that retains stack trace.class
Converter that supports the definition of one field member that will be written as value and all other field members are written as attributes.Fields in com.thoughtworks.xstream.converters.extended declared as ConverterMethods in com.thoughtworks.xstream.converters.extended that return ConverterConstructors in com.thoughtworks.xstream.converters.extended with parameters of type ConverterModifierConstructorDescriptionRegexPatternConverter
(Converter defaultConverter) Deprecated.As of 1.4.5, useRegexPatternConverter()
insteadThrowableConverter
(Converter defaultConverter) Deprecated.As of 1.4.5 useThrowableConverter(ConverterLookup)
-
Uses of Converter in com.thoughtworks.xstream.converters.javabean
Classes in com.thoughtworks.xstream.converters.javabean that implement ConverterModifier and TypeClassDescriptionclass
Can convert any bean with a public default constructor. -
Uses of Converter in com.thoughtworks.xstream.converters.reflection
Classes in com.thoughtworks.xstream.converters.reflection that implement ConverterModifier and TypeClassDescriptionclass
class
Converts a proxy created by the CGLIBEnhancer
.class
Converts any object that implements the java.io.Externalizable interface, allowing compatibility with native Java serialization.class
Converts a lambda type.class
class
Deprecated.As of 1.4.5 useSelfStreamingInstanceChecker
class
Emulates the mechanism used by standard Java Serialization for classes that implement java.io.Serializable AND implement or inherit a custom readObject()/writeObject() method.Constructors in com.thoughtworks.xstream.converters.reflection with parameters of type ConverterModifierConstructorDescriptionSelfStreamingInstanceChecker
(Converter defaultConverter, Object xstream) Deprecated. -
Uses of Converter in com.thoughtworks.xstream.converters.time
Classes in com.thoughtworks.xstream.converters.time that implement ConverterModifier and TypeClassDescriptionclass
Converts a systemClock
, using zone as nested element.class
Converts a temporalValueRange
, using four nested elements: maxLargest, maxSmallest, minLargest, and minSmallest.class
Converts aWeekFields
instance, using two nested elements: minimalDays and minSmallest. -
Uses of Converter in com.thoughtworks.xstream.core
Methods in com.thoughtworks.xstream.core that return ConverterMethods in com.thoughtworks.xstream.core with parameters of type ConverterModifier and TypeMethodDescriptionprivate void
TreeUnmarshaller.addInformationTo
(ErrorWriter errorWriter, Class type, Converter converter, Object parent) void
protected Object
protected void
protected Object
void
TreeMarshaller.convertAnother
(Object item, Converter converter) TreeUnmarshaller.convertAnother
(Object parent, Class type, Converter converter) void
DefaultConverterLookup.registerConverter
(Converter converter, int priority) -
Uses of Converter in com.thoughtworks.xstream.core.util
Classes in com.thoughtworks.xstream.core.util that implement ConverterModifier and TypeClassDescriptionclass
A special converter that prevents self-serialization.Fields in com.thoughtworks.xstream.core.util declared as ConverterMethods in com.thoughtworks.xstream.core.util that return ConverterConstructors in com.thoughtworks.xstream.core.util with parameters of type ConverterModifierConstructorDescriptionSelfStreamingInstanceChecker
(Converter defaultConverter, Object xstream) Deprecated.As of 1.4.5 useSelfStreamingInstanceChecker(ConverterLookup, Object)
-
Uses of Converter in com.thoughtworks.xstream.mapper
Fields in com.thoughtworks.xstream.mapper with type parameters of type ConverterMethods in com.thoughtworks.xstream.mapper that return ConverterModifier and TypeMethodDescriptionprivate Converter
AnnotationMapper.cacheConverter
(XStreamConverter annotation, Class targetType) AnnotationMapper.getLocalConverter
(Class definedIn, String fieldName) DefaultMapper.getLocalConverter
(Class definedIn, String fieldName) LocalConversionMapper.getLocalConverter
(Class definedIn, String fieldName) Mapper.getLocalConverter
(Class definedIn, String fieldName) MapperWrapper.getLocalConverter
(Class definedIn, String fieldName) Methods in com.thoughtworks.xstream.mapper with parameters of type ConverterModifier and TypeMethodDescriptionvoid
LocalConversionMapper.registerLocalConverter
(Class definedIn, String fieldName, Converter converter)
ReflectionConverter