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 TypeMethodDescriptionvoidXStream.registerConverter(Converter converter) voidXStream.registerConverter(Converter converter, int priority) voidXStream.registerLocalConverter(Class definedIn, String fieldName, Converter converter) Register a localConverterfor 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.cachedConvertersDeprecated.Methods in com.thoughtworks.xstream.annotations that return ConverterModifier and TypeMethodDescriptionprivate ConverterAnnotationReflectionConverter.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 TypeClassDescriptionclassWrapper to convert aSingleValueConverterinto 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 TypeMethodDescriptionvoidMarshallingContext.convertAnother(Object nextItem, Converter converter) Converts another object using the specified converterUnmarshallingContext.convertAnother(Object current, Class type, Converter converter) voidConverterRegistry.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 TypeClassDescriptionclassConverts a char primitive or java.lang.Character wrapper to a String.classSpecial 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 TypeClassDescriptionclassBase helper class for converters that need to handle collections of items (arrays, Lists, Maps, etc).classConverts an array of objects or primitives to XML, using a nested child element for each item.classConverts a java.util.BitSet to XML, as a compact comma delimited list of ones and zeros.classConverts a char[] to XML, storing the contents as a single String.classConverts most common Collections (Lists and Sets) to XML, specifying a nested element for each item.classConverts a java.util.Map to XML, specifying an 'entry' element with 'key' and 'value' children.classSpecial converter for java.util.Properties that stores properties in a more compact form than java.util.Map.classConverts singleton collections (list and set) to XML, specifying a nested element for the item.classConverts a singleton map to XML, specifying an 'entry' element with 'key' and 'value' children.classConverts a java.util.TreeMap to XML, and serializes the associated java.util.Comparator.classConverts a java.util.TreeSet to XML, and serializes the associated java.util.Comparator.classConverts a WeakHashMap. -
Uses of Converter in com.thoughtworks.xstream.converters.enums
Classes in com.thoughtworks.xstream.converters.enums that implement ConverterModifier and TypeClassDescriptionclassConverter for JDK 1.5 enums.classSerializes an Java 5 EnumMap, including the type of Enum it's for.classSerializes a Java 5 EnumSet. -
Uses of Converter in com.thoughtworks.xstream.converters.extended
Classes in com.thoughtworks.xstream.converters.extended that implement ConverterModifier and TypeClassDescriptionclassConverts anActivationDataFlavor.classConverts an AtomicBoolean type.classConverts an AtomicInteger type.classConverts an AtomicLong type.classConverts an AtomicReference type.classConverts a java.awt.Color to XML, using four nested elements: red, green, blue, alpha.classConverts a dynamic proxy to XML, storing the implemented interfaces and handler.classConverts a byte array by default to a single Base64 encoding string.classclassConverts a java.util.GregorianCalendar to XML.classConverts a java.lang.reflect.Field to XML.classConverts a java.lang.reflect.Method to XML.classA converter for Swing LookAndFeel implementations.classAn array converter that uses predefined names for its items.classA collection converter that uses predefined names for its items.classA map converter that uses predefined names for its elements.classConverts an Optional type.classConverts an OptionalDouble type.classConverts an OptionalInt type.classConverts an OptionalLong type.classEnsures java.util.regex.Pattern is compiled upon deserialization.classConverts aSubjectinstance.classConverter for Throwable (and Exception) that retains stack trace.classConverter 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 TypeClassDescriptionclassCan 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 TypeClassDescriptionclassclassConverts a proxy created by the CGLIBEnhancer.classConverts any object that implements the java.io.Externalizable interface, allowing compatibility with native Java serialization.classConverts a lambda type.classclassDeprecated.As of 1.4.5 useSelfStreamingInstanceCheckerclassEmulates 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 TypeClassDescriptionclassConverts a systemClock, using zone as nested element.classConverts a temporalValueRange, using four nested elements: maxLargest, maxSmallest, minLargest, and minSmallest.classConverts aWeekFieldsinstance, 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 voidTreeUnmarshaller.addInformationTo(ErrorWriter errorWriter, Class type, Converter converter, Object parent) voidprotected Objectprotected voidprotected ObjectvoidTreeMarshaller.convertAnother(Object item, Converter converter) TreeUnmarshaller.convertAnother(Object parent, Class type, Converter converter) voidDefaultConverterLookup.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 TypeClassDescriptionclassA 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 ConverterAnnotationMapper.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 TypeMethodDescriptionvoidLocalConversionMapper.registerLocalConverter(Class definedIn, String fieldName, Converter converter)
ReflectionConverter