Top Deprecated
XStream Core 1.4.20

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
com.thoughtworks.xstream.XStream.XStream(ReflectionProvider
the reflection provider to use or null for best matching Provider
reflectionProvider
,
Mapper
the instance with the Mapper chain or null for the default chain
mapper
,
HierarchicalStreamDriver
the driver instance
driver
)

As of 1.3, use XStream(ReflectionProvider, HierarchicalStreamDriver, ClassLoader, Mapper) instead

com.thoughtworks.xstream.XStream.XStream(ReflectionProvider
the reflection provider to use or null for best matching Provider
reflectionProvider
,
HierarchicalStreamDriver
the driver instance
driver
,
ClassLoader
the ClassLoader to use
classLoader
,
Mapper
the instance with the Mapper chain or null for the default chain
mapper
)

As of 1.4.5 use XStream(ReflectionProvider, HierarchicalStreamDriver, ClassLoaderReference, Mapper)

com.thoughtworks.xstream.XStream.XStream(ReflectionProvider
the reflection provider to use or null for best matching Provider
reflectionProvider
,
HierarchicalStreamDriver
the driver instance
driver
,
ClassLoader
the ClassLoader to use
classLoader
,
Mapper
the instance with the Mapper chain or null for the default chain
mapper
,
ConverterLookup
the instance that is used to lookup the converters
converterLookup
,
ConverterRegistry
an instance to manage the converter instances
converterRegistry
)

As of 1.4.5 use XStream(ReflectionProvider, HierarchicalStreamDriver, ClassLoaderReference, Mapper, ConverterLookup, ConverterRegistry)

com.thoughtworks.xstream.XStream.annotationConfiguration

Deprecated as a consequence of AnnotationConfiguration being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.XStreamException

Deprecated as a consequence of BaseException being deprecated.

Returns:

The Annotation type
com.thoughtworks.xstream.annotations.AnnotationProvider.getAnnotation
(Field
the annotation Field
field
,
Class<T>
the annotation Class
annotationClass
)

As of 1.3

com.thoughtworks.xstream.annotations.AnnotationReflectionConverter.annotationProvider

Deprecated as a consequence of AnnotationProvider being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.annotations.Annotations.configureAliases(XStream
the XStream object that will be configured
xstream
,
Class<?>...
the class for which the XStream object is configured. This class is expected to be decorated with annotations defined in this package.
topLevelClasses
)

As of 1.3, use XStream#processAnnotations(Class[])

com.thoughtworks.xstream.annotations.XStreamContainedType

As of 1.3, recursive behaviour is now always used and the annotation is therefore superfluous

com.thoughtworks.xstream.annotations.XStreamImplicitCollection

As of 1.3, use @XStreamImplicit at field level

com.thoughtworks.xstream.converters.ErrorWritingException

Deprecated as a consequence of XStreamException being deprecated.

com.thoughtworks.xstream.converters.extended.StackTraceElementConverter.FACTORY

Deprecated as a consequence of StackTraceElementFactory being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.converters.javabean.JavaBeanConverter.DuplicatePropertyException

Deprecated as a consequence of ConversionException being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException

Deprecated as a consequence of ConversionException being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.UnknownFieldException

Deprecated as a consequence of ConversionException being deprecated. See corresponding docs for further information.

Returns:

an iterator for its fields
com.thoughtworks.xstream.converters.reflection.FieldDictionary.serializableFieldsFor
(final Class<T>
the class you are interested on
cls
)

As of 1.3, use fieldsFor(Class) instead

com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.supportsReadObject(Class<T> type, boolean includeBaseClasses)

As of 1.4.8, moved into internal util package.

com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.supportsWriteObject(Class<T> type, boolean includeBaseClasses)

As of 1.4.8, moved into internal util package.

com.thoughtworks.xstream.core.AbstractReferenceMarshaller.ReferencedImplicitElementException

Deprecated as a consequence of ConversionException being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.core.JVM.JVM()

As of 1.4.5 use the static methods of JVM.

com.thoughtworks.xstream.core.JVM.flushCache()

As of 1.4.5 no functionality

com.thoughtworks.xstream.core.JVM.is14()

As of 1.4.4, minimal JDK version is 1.4 already

com.thoughtworks.xstream.core.JVM.is15()

As of 1.4.4, minimal JDK version will be 1.7 for next major release

com.thoughtworks.xstream.core.JVM.is16()

As of 1.4.4, minimal JDK version will be 1.7 for next major release

com.thoughtworks.xstream.core.JVM.is17()

As of 1.4.10, minimal JDK version will be 1.7 for next major release

com.thoughtworks.xstream.core.TreeMarshaller.CircularReferenceException

Deprecated as a consequence of ConversionException being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.core.util.Fields.wrap(final String message, final Class<T> type, final String name, final Throwable ex)

Deprecated as a consequence of ObjectAccessException being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.io.AbstractReader

Deprecated as a consequence of ExtendedHierarchicalStreamReader being deprecated.

com.thoughtworks.xstream.io.AbstractWriter

Deprecated as a consequence of ExtendedHierarchicalStreamWriter being deprecated.

com.thoughtworks.xstream.io.AttributeNameIterator

As of 1.4.8, it is an internal helper class only

com.thoughtworks.xstream.io.ExtendedHierarchicalStreamReader

As of 1.4.11, this interface will be merged into parent with version 1.5.0.

com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter

As of 1.4.11, this interface will be merged into parent with version 1.5.0.

com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriterHelper

As of 1.4.11, this helper is no longer required since version 1.5.0.

com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriterHelper.startNode(HierarchicalStreamWriter writer, String name, Class<T> clazz)

As of 1.4.11, with version 1.5.0 use HierarchicalStreamWriter#startNode(String, Class) directly. This helper will be no longer required.

com.thoughtworks.xstream.io.ReaderWrapper

Deprecated as a consequence of ExtendedHierarchicalStreamReader being deprecated.

com.thoughtworks.xstream.io.StatefulWriter

Deprecated as a consequence of WriterWrapper being deprecated.

com.thoughtworks.xstream.io.StreamException

Deprecated as a consequence of XStreamException being deprecated.

com.thoughtworks.xstream.io.WriterWrapper

Deprecated as a consequence of ExtendedHierarchicalStreamWriter being deprecated.

com.thoughtworks.xstream.io.json.AbstractJsonWriter

Deprecated as a consequence of AbstractWriter being deprecated.

com.thoughtworks.xstream.io.json.JettisonStaxWriter

Deprecated as a consequence of StaxWriter being deprecated.

com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter.JsonHierarchicalStreamWriter(Writer writer, char[] lineIndenter, String newLine)

As of 1.3.1, use JsonWriter instead

com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter.JsonHierarchicalStreamWriter(Writer writer, char[] lineIndenter)

As of 1.3.1, use JsonWriter instead

com.thoughtworks.xstream.io.json.JsonWriter

Deprecated as a consequence of AbstractJsonWriter being deprecated.

com.thoughtworks.xstream.io.json.JsonWriter.JsonWriter(Writer writer, char[] lineIndenter, String newLine)

As of 1.4 use instead

com.thoughtworks.xstream.io.json.JsonWriter.JsonWriter(Writer writer, char[] lineIndenter)

As of 1.4 use instead

com.thoughtworks.xstream.io.json.JsonWriter.JsonWriter(Writer writer, char[] lineIndenter, String newLine, int mode)

As of 1.4 use instead

com.thoughtworks.xstream.io.path.PathTrackingReader

Deprecated as a consequence of ReaderWrapper being deprecated.

com.thoughtworks.xstream.io.path.PathTrackingWriter

Deprecated as a consequence of WriterWrapper being deprecated.

com.thoughtworks.xstream.io.xml.AbstractDocumentReader

Deprecated as a consequence of AbstractXmlReader being deprecated.

com.thoughtworks.xstream.io.xml.AbstractDocumentWriter

Deprecated as a consequence of AbstractXmlWriter being deprecated.

com.thoughtworks.xstream.io.xml.AbstractDocumentWriter.AbstractDocumentWriter(final Object
the top level container for the nodes to create (may be null)
container
,
final XmlFriendlyReplacer
the object that creates XML-friendly names
replacer
)

As of 1.4 use AbstractDocumentWriter#AbstractDocumentWriter(Object, NameCoder) instead.

com.thoughtworks.xstream.io.xml.AbstractPullReader

Deprecated as a consequence of AbstractXmlReader being deprecated.

Returns:

An escaped name with original characters
com.thoughtworks.xstream.io.xml.AbstractXmlReader.escapeXmlName
(String
the unescaped XML-unfriendly name
name
)

As of 1.4, use AbstractReader instead.

Returns:

An unescaped name with original characters
com.thoughtworks.xstream.io.xml.AbstractXmlReader.unescapeXmlName
(String
the escaped XML-friendly name
name
)

As of 1.4, use decodeNode(String) or decodeAttribute(String) instead.

Returns:

An escaped name with original characters replaced
com.thoughtworks.xstream.io.xml.AbstractXmlWriter.escapeXmlName
(String
the unescaped XML name
name
)

As of 1.4 use encodeNode(String) or encodeAttribute(String) instead

com.thoughtworks.xstream.io.xml.AbstractXppDomDriver

Deprecated as a consequence of AbstractXmlDriver being deprecated.

com.thoughtworks.xstream.io.xml.AbstractXppDriver

Deprecated as a consequence of AbstractXmlDriver being deprecated.

com.thoughtworks.xstream.io.xml.BEAStaxDriver

As of 1.4.11 use StandardStaxDriver or WstxDriver instead. BEA StAX implementation is outdated, unmaintained and has security issues.

com.thoughtworks.xstream.io.xml.CompactWriter

Deprecated as a consequence of PrettyPrintWriter being deprecated.

com.thoughtworks.xstream.io.xml.Dom4JDriver

Deprecated as a consequence of AbstractXmlDriver being deprecated.

com.thoughtworks.xstream.io.xml.Dom4JReader

Deprecated as a consequence of AbstractDocumentReader being deprecated.

com.thoughtworks.xstream.io.xml.Dom4JWriter

Deprecated as a consequence of AbstractDocumentWriter being deprecated.

com.thoughtworks.xstream.io.xml.Dom4JXmlWriter

Deprecated as a consequence of AbstractXmlWriter being deprecated.

com.thoughtworks.xstream.io.xml.DomDriver

Deprecated as a consequence of AbstractXmlDriver being deprecated.

com.thoughtworks.xstream.io.xml.DomReader

Deprecated as a consequence of AbstractDocumentReader being deprecated.

com.thoughtworks.xstream.io.xml.DomWriter

Deprecated as a consequence of AbstractDocumentWriter being deprecated.

com.thoughtworks.xstream.io.xml.JDom2Reader

Deprecated as a consequence of AbstractDocumentReader being deprecated.

com.thoughtworks.xstream.io.xml.JDom2Writer

Deprecated as a consequence of AbstractDocumentWriter being deprecated.

com.thoughtworks.xstream.io.xml.JDomDriver

Deprecated as a consequence of AbstractXmlDriver being deprecated.

com.thoughtworks.xstream.io.xml.JDomReader

Deprecated as a consequence of AbstractDocumentReader being deprecated.

com.thoughtworks.xstream.io.xml.JDomWriter

Deprecated as a consequence of AbstractDocumentWriter being deprecated.

com.thoughtworks.xstream.io.xml.KXml2DomDriver

Deprecated as a consequence of AbstractXppDomDriver being deprecated.

com.thoughtworks.xstream.io.xml.KXml2Driver

Deprecated as a consequence of AbstractXppDriver being deprecated.

com.thoughtworks.xstream.io.xml.MXParserDomDriver

Deprecated as a consequence of AbstractXppDomDriver being deprecated.

com.thoughtworks.xstream.io.xml.MXParserDriver

Deprecated as a consequence of AbstractXppDriver being deprecated.

com.thoughtworks.xstream.io.xml.PrettyPrintWriter

Deprecated as a consequence of AbstractXmlWriter being deprecated.

com.thoughtworks.xstream.io.xml.SaxWriter

Deprecated as a consequence of AbstractXmlWriter being deprecated.

com.thoughtworks.xstream.io.xml.StandardStaxDriver

Deprecated as a consequence of StaxDriver being deprecated.

com.thoughtworks.xstream.io.xml.StaxDriver

Deprecated as a consequence of AbstractXmlDriver being deprecated.

com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(XMLStreamReader in)

Deprecated as a consequence of AbstractPullReader being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.io.xml.StaxDriver.createStaxWriter(XMLStreamWriter out, boolean writeStartEndDocument)

Deprecated as a consequence of StaxWriter being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.io.xml.StaxDriver.createStaxWriter(XMLStreamWriter out)

Deprecated as a consequence of StaxWriter being deprecated. See corresponding docs for further information.

com.thoughtworks.xstream.io.xml.StaxReader

Deprecated as a consequence of AbstractPullReader being deprecated.

com.thoughtworks.xstream.io.xml.StaxWriter

Deprecated as a consequence of AbstractXmlWriter being deprecated.

com.thoughtworks.xstream.io.xml.StaxWriter.StaxWriter(QNameMap
is the mapper of Java class names to QNames
qnameMap
,
XMLStreamWriter
the stream to output to
out
,
boolean
a flag to indicate whether or not the start/end document events should be written
writeEnclosingDocument
,
boolean namespaceRepairingMode, XmlFriendlyReplacer
the xml-friendly replacer to escape Java names
replacer
)

As of 1.4 use StaxWriter#StaxWriter(QNameMap, XMLStreamWriter, boolean, boolean, NameCoder) instead

com.thoughtworks.xstream.io.xml.WstxDriver

Deprecated as a consequence of StaxDriver being deprecated.

Returns:

An unescaped name with original characters
com.thoughtworks.xstream.io.xml.XmlFriendlyReader.unescapeXmlName
(String
the escaped XML-friendly name
name
)

As of 1.4

com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer.XmlFriendlyReplacer(String
the replacement for '$'
dollarReplacement
,
String
the replacement for '_'
underscoreReplacement
)

As of 1.4, use XmlFriendlyNameCoder instead

Returns:

The String with the escaped name
com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer.escapeName
(String
the name of attribute or node
name
)

As of 1.4, use XmlFriendlyNameCoder instead

Returns:

The String with unescaped name
com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer.unescapeName
(String
the name of attribute or node
name
)

As of 1.4, use XmlFriendlyNameCoder instead

Returns:

An escaped name with original characters replaced
com.thoughtworks.xstream.io.xml.XmlFriendlyWriter.escapeXmlName
(String
the unescaped XML name
name
)

As of 1.4

com.thoughtworks.xstream.io.xml.XomDriver

Deprecated as a consequence of AbstractXmlDriver being deprecated.

com.thoughtworks.xstream.io.xml.XomReader

Deprecated as a consequence of AbstractDocumentReader being deprecated.

com.thoughtworks.xstream.io.xml.XomWriter

Deprecated as a consequence of AbstractDocumentWriter being deprecated.

com.thoughtworks.xstream.io.xml.Xpp3DomDriver

Deprecated as a consequence of AbstractXppDomDriver being deprecated.

com.thoughtworks.xstream.io.xml.Xpp3Driver

Deprecated as a consequence of AbstractXppDriver being deprecated.

com.thoughtworks.xstream.io.xml.XppDomDriver

Deprecated as a consequence of AbstractXppDomDriver being deprecated.

com.thoughtworks.xstream.io.xml.XppDomReader

Deprecated as a consequence of AbstractDocumentReader being deprecated.

com.thoughtworks.xstream.io.xml.XppDomWriter

Deprecated as a consequence of AbstractDocumentWriter being deprecated.

com.thoughtworks.xstream.io.xml.XppDriver

Deprecated as a consequence of AbstractXppDriver being deprecated.

com.thoughtworks.xstream.io.xml.XppReader

Deprecated as a consequence of AbstractPullReader being deprecated.

com.thoughtworks.xstream.mapper.AnnotationConfiguration

As of 1.4.5, minimal JDK version will be 1.7 for next major release

com.thoughtworks.xstream.mapper.AnnotationMapper

Deprecated as a consequence of AnnotationConfiguration being deprecated.

com.thoughtworks.xstream.mapper.AnnotationMapper.AnnotationMapper(final Mapper
the next Mapper in the chain
wrapped
,
final ConverterRegistry converterRegistry, final ConverterLookup converterLookup, final ClassLoader classLoader, final ReflectionProvider reflectionProvider, final JVM jvm)

As of 1.4.5 use AnnotationMapper(Mapper, ConverterRegistry, ConverterLookup, ClassLoaderReference, ReflectionProvider)

com.thoughtworks.xstream.mapper.CannotResolveClassException

Deprecated as a consequence of XStreamException being deprecated.

com.thoughtworks.xstream.mapper.ClassAliasingMapper.addClassAttributeAlias(String name, Class<T> type)

As of 1.3, method was a leftover of an old implementation

com.thoughtworks.xstream.mapper.DefaultMapper.DefaultMapper(ClassLoader
the ClassLoader used by the XStream instance.
classLoader
)

As of 1.4.5 use DefaultMapper(ClassLoaderReference)

com.thoughtworks.xstream.mapper.DefaultMapper.aliasForAttribute(Class<T>
the type where the field was defined
definedIn
,
String
the field name
fieldName
)

As of 1.3, use combination of serializedMember(Class, String) and getConverterFromItemType(String, Class, Class)

com.thoughtworks.xstream.mapper.DefaultMapper.attributeForAlias(Class<T>
the type where the field was defined
definedIn
,
String
the alias
alias
)

As of 1.3, use combination of realMember(Class, String) and getConverterFromItemType(String, Class, Class)

Returns:

the alias for this field or its own name if no alias was defined
com.thoughtworks.xstream.mapper.Mapper.aliasForAttribute
(Class<T>
the type where the field was defined
definedIn
,
String
the field name
fieldName
)

As of 1.3, use combination of serializedMember(Class, String) and getConverterFromItemType(String, Class, Class)

Returns:

the original attribute name
com.thoughtworks.xstream.mapper.Mapper.attributeForAlias
(Class<T>
the type where the field was defined
definedIn
,
String
the alias
alias
)

As of 1.3, use combination of realMember(Class, String) and getConverterFromItemType(String, Class, Class)

com.thoughtworks.xstream.mapper.MapperWrapper.aliasForAttribute(Class<T>
the type where the field was defined
definedIn
,
String
the field name
fieldName
)

As of 1.3, use combination of serializedMember(Class, String) and getConverterFromItemType(String, Class, Class)

com.thoughtworks.xstream.mapper.MapperWrapper.attributeForAlias(Class<T>
the type where the field was defined
definedIn
,
String
the alias
alias
)

As of 1.3, use combination of realMember(Class, String) and getConverterFromItemType(String, Class, Class)

com.thoughtworks.xstream.persistence.FileStreamStrategy

As of 1.3.1, use FilePersistenceStrategy

com.thoughtworks.xstream.security.AbstractSecurityException

Deprecated as a consequence of XStreamException being deprecated.