Package | Description |
---|---|
com.thoughtworks.xstream | |
com.thoughtworks.xstream.annotations | |
com.thoughtworks.xstream.converters | |
com.thoughtworks.xstream.converters.basic |
Converters for common basic types in Java.
|
com.thoughtworks.xstream.converters.collections |
Converters for collection objects that write their items as
nested elements, such as arrays, Lists, Sets and Maps.
|
com.thoughtworks.xstream.converters.enums | |
com.thoughtworks.xstream.converters.extended |
Extra converters that may not be enabled in XStream by default.
|
com.thoughtworks.xstream.converters.javabean | |
com.thoughtworks.xstream.converters.reflection | |
com.thoughtworks.xstream.converters.time |
Extra converters for the java.time package.
|
com.thoughtworks.xstream.core | |
com.thoughtworks.xstream.core.util | |
com.thoughtworks.xstream.mapper |
Modifier and Type | Method and Description |
---|---|
void |
XStream.registerConverter(Converter converter) |
void |
XStream.registerConverter(Converter converter,
int priority) |
void |
XStream.registerLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName,
Converter converter)
Register a local
Converter for a field. |
Modifier and Type | Class and Description |
---|---|
class |
AnnotationReflectionConverter
Deprecated.
As of 1.3, build into
ReflectionConverter |
Modifier and Type | Class and Description |
---|---|
class |
SingleValueConverterWrapper
Wrapper to convert a
SingleValueConverter into a
Converter . |
Modifier and Type | Method and Description |
---|---|
Converter |
ConverterLookup.lookupConverterForType(java.lang.Class type)
Lookup a converter for a specific type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
UnmarshallingContext.convertAnother(java.lang.Object current,
java.lang.Class type,
Converter converter) |
void |
MarshallingContext.convertAnother(java.lang.Object nextItem,
Converter converter)
Converts another object using the specified converter
|
void |
ConverterRegistry.registerConverter(Converter converter,
int priority) |
Modifier and Type | Class and Description |
---|---|
class |
CharConverter
Converts a char primitive or java.lang.Character wrapper to
a String.
|
class |
NullConverter
Special converter to signify nulls at the root level.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCollectionConverter
Base helper class for converters that need to handle
collections of items (arrays, Lists, Maps, etc).
|
class |
ArrayConverter
Converts an array of objects or primitives to XML, using
a nested child element for each item.
|
class |
BitSetConverter
Converts a java.util.BitSet to XML, as a compact
comma delimited list of ones and zeros.
|
class |
CharArrayConverter
Converts a char[] to XML, storing the contents as a single
String.
|
class |
CollectionConverter
Converts most common Collections (Lists and Sets) to XML, specifying a nested
element for each item.
|
class |
MapConverter
Converts a java.util.Map to XML, specifying an 'entry'
element with 'key' and 'value' children.
|
class |
PropertiesConverter
Special converter for java.util.Properties that stores properties in a more compact form than
java.util.Map.
|
class |
SingletonCollectionConverter
Converts singleton collections (list and set) to XML, specifying a nested element for the
item.
|
class |
SingletonMapConverter
Converts a singleton map to XML, specifying an 'entry'
element with 'key' and 'value' children.
|
class |
TreeMapConverter
Converts a java.util.TreeMap to XML, and serializes
the associated java.util.Comparator.
|
class |
TreeSetConverter
Converts a java.util.TreeSet to XML, and serializes
the associated java.util.Comparator.
|
class |
WeakHashMapConverter
Converts a WeakHashMap.
|
Modifier and Type | Class and Description |
---|---|
class |
EnumConverter
Converter for JDK 1.5 enums.
|
class |
EnumMapConverter
Serializes an Java 5 EnumMap, including the type of Enum it's for.
|
class |
EnumSetConverter
Serializes a Java 5 EnumSet.
|
Modifier and Type | Class and Description |
---|---|
class |
ActivationDataFlavorConverter
Converts an
ActivationDataFlavor . |
class |
AtomicBooleanConverter
Converts an AtomicBoolean type.
|
class |
AtomicIntegerConverter
Converts an AtomicInteger type.
|
class |
AtomicLongConverter
Converts an AtomicLong type.
|
class |
AtomicReferenceConverter
Converts an AtomicReference type.
|
class |
ColorConverter
Converts a java.awt.Color to XML, using four nested elements:
red, green, blue, alpha.
|
class |
DynamicProxyConverter
Converts a dynamic proxy to XML, storing the implemented
interfaces and handler.
|
class |
EncodedByteArrayConverter
Converts a byte array by default to a single Base64 encoding string.
|
class |
FontConverter |
class |
GregorianCalendarConverter
Converts a java.util.GregorianCalendar to XML.
|
class |
JavaFieldConverter
Converts a java.lang.reflect.Field to XML.
|
class |
JavaMethodConverter
Converts a java.lang.reflect.Method to XML.
|
class |
LookAndFeelConverter
A converter for Swing LookAndFeel implementations.
|
class |
NamedArrayConverter
An array converter that uses predefined names for its items.
|
class |
NamedCollectionConverter
A collection converter that uses predefined names for its items.
|
class |
NamedMapConverter
A map converter that uses predefined names for its elements.
|
class |
OptionalConverter
Converts an Optional type.
|
class |
OptionalDoubleConverter
Converts an OptionalDouble type.
|
class |
OptionalIntConverter
Converts an OptionalInt type.
|
class |
OptionalLongConverter
Converts an OptionalLong type.
|
class |
RegexPatternConverter
Ensures java.util.regex.Pattern is compiled upon deserialization.
|
class |
SubjectConverter
Converts a
Subject instance. |
class |
ThrowableConverter
Converter for Throwable (and Exception) that retains stack trace.
|
class |
ToAttributedValueConverter
Converter that supports the definition of one field member that will be written as value and
all other field members are written as attributes.
|
Constructor and Description |
---|
RegexPatternConverter(Converter defaultConverter)
Deprecated.
As of 1.4.5, use
RegexPatternConverter() instead |
ThrowableConverter(Converter defaultConverter)
Deprecated.
As of 1.4.5 use
ThrowableConverter(ConverterLookup) |
Modifier and Type | Class and Description |
---|---|
class |
JavaBeanConverter
Can convert any bean with a public default constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractReflectionConverter |
class |
CGLIBEnhancedConverter
Converts a proxy created by the CGLIB
Enhancer . |
class |
ExternalizableConverter
Converts any object that implements the java.io.Externalizable interface, allowing compatibility with native Java
serialization.
|
class |
LambdaConverter
Converts a lambda type.
|
class |
ReflectionConverter |
class |
SerializableConverter
Emulates the mechanism used by standard Java Serialization for classes that implement java.io.Serializable AND
implement or inherit a custom readObject()/writeObject() method.
|
Constructor and Description |
---|
SelfStreamingInstanceChecker(Converter defaultConverter,
java.lang.Object xstream)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
SystemClockConverter
Converts a system
Clock , using zone as nested element. |
class |
ValueRangeConverter
Converts a temporal
ValueRange , using four nested elements: maxLargest, maxSmallest, minLargest, and
minSmallest. |
class |
WeekFieldsConverter
Converts a
WeekFields instance, using two nested elements: minimalDays and minSmallest. |
Modifier and Type | Method and Description |
---|---|
Converter |
DefaultConverterLookup.lookupConverterForType(java.lang.Class type) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
AbstractReferenceUnmarshaller.convert(java.lang.Object parent,
java.lang.Class type,
Converter converter) |
protected java.lang.Object |
TreeUnmarshaller.convert(java.lang.Object parent,
java.lang.Class type,
Converter converter) |
void |
AbstractReferenceMarshaller.convert(java.lang.Object item,
Converter converter) |
protected void |
TreeMarshaller.convert(java.lang.Object item,
Converter converter) |
java.lang.Object |
TreeUnmarshaller.convertAnother(java.lang.Object parent,
java.lang.Class type,
Converter converter) |
void |
TreeMarshaller.convertAnother(java.lang.Object item,
Converter converter) |
void |
DefaultConverterLookup.registerConverter(Converter converter,
int priority) |
Modifier and Type | Class and Description |
---|---|
class |
com.thoughtworks.xstream.core.util.SelfStreamingInstanceChecker
A special converter that prevents self-serialization.
|
Modifier and Type | Method and Description |
---|---|
Converter |
AnnotationMapper.getLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName) |
Converter |
DefaultMapper.getLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName) |
Converter |
LocalConversionMapper.getLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName) |
Converter |
MapperWrapper.getLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName) |
Converter |
Mapper.getLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
void |
LocalConversionMapper.registerLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName,
Converter converter) |
Copyright © 2004–2024 XStream. All rights reserved.