Deprecated API


Contents
Deprecated Interfaces
com.thoughtworks.xstream.alias.ClassMapper
          As of 1.2, use Mapper 
com.thoughtworks.xstream.alias.NameMapper
          As of 1.2 
com.thoughtworks.xstream.persistence.StreamStrategy
          since 1.3.1, use PersistenceStrategy instead 
 

Deprecated Classes
com.thoughtworks.xstream.converters.basic.AbstractBasicConverter
          Since 1.2 use AbstractSingleValueConverter 
com.thoughtworks.xstream.annotations.AnnotationProvider
          since 1.3 
com.thoughtworks.xstream.annotations.AnnotationReflectionConverter
          since 1.3, build into ReflectionConverter 
com.thoughtworks.xstream.annotations.Annotations
          since 1.3, use XStream.processAnnotations(Class[]) 
com.thoughtworks.xstream.converters.javabean.BeanProperty
          since 1.3.1, no longer in use 
com.thoughtworks.xstream.alias.ClassMapper.Null
          As of 1.2, use ClassMapper.Null 
com.thoughtworks.xstream.persistence.FileStreamStrategy
          since 1.3.1, use FilePersistenceStrategy 
com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter
          since 1.3.1, use JsonWriter instead 
com.thoughtworks.xstream.converters.javabean.PropertyDictionary
          since 1.3.1, no longer in use 
com.thoughtworks.xstream.converters.basic.ThreadSafeSimpleDateFormat
          since 1.2.1, moved to com.thoughtworks.xstream.core.util. It is not part of public API, use on your own risk. 
com.thoughtworks.xstream.mapper.XmlFriendlyMapper
          since 1.3, use XmlFriendlyReader 
 

Deprecated Exceptions
com.thoughtworks.xstream.alias.CannotResolveClassException
          As of 1.2, use CannotResolveClassException instead 
com.thoughtworks.xstream.converters.javabean.JavaBeanConverter.DuplicateFieldException
          since 1.3 
com.thoughtworks.xstream.XStream.InitializationException
          since 1.3, use InitializationException instead 
 

Deprecated Annotation Types
com.thoughtworks.xstream.annotations.XStreamContainedType
          since 1.3, recursive behaviour is now always used and the annotation is therefore superfluous 
com.thoughtworks.xstream.annotations.XStreamImplicitCollection
          since 1.3, use @XStreamImplicit at field level 
 

Deprecated Fields
com.thoughtworks.xstream.XStream.XPATH_REFERENCES
          since 1.2, use XStream.XPATH_RELATIVE_REFERENCES or XStream.XPATH_ABSOLUTE_REFERENCES instead. 
 

Deprecated Methods
com.thoughtworks.xstream.mapper.ClassAliasingMapper.addClassAttributeAlias(String, Class)
          since 1.3, method was a leftover of an old implementation 
com.thoughtworks.xstream.mapper.DefaultMapper.aliasForAttribute(Class, String)
          since 1.3, use combination of DefaultMapper.serializedMember(Class, String) and DefaultMapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.Mapper.aliasForAttribute(Class, String)
          since 1.3, use combination of Mapper.serializedMember(Class, String) and Mapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.MapperWrapper.aliasForAttribute(Class, String)
          since 1.3, use combination of MapperWrapper.serializedMember(Class, String) and MapperWrapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.DefaultMapper.attributeForAlias(Class, String)
          since 1.3, use combination of DefaultMapper.realMember(Class, String) and DefaultMapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.Mapper.attributeForAlias(Class, String)
          since 1.3, use combination of Mapper.realMember(Class, String) and Mapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.MapperWrapper.attributeForAlias(Class, String)
          since 1.3, use combination of MapperWrapper.realMember(Class, String) and MapperWrapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.DefaultMapper.attributeForClassDefiningField()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.Mapper.attributeForClassDefiningField()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.MapperWrapper.attributeForClassDefiningField()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.DefaultMapper.attributeForEnumType()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.Mapper.attributeForEnumType()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.MapperWrapper.attributeForEnumType()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.DefaultMapper.attributeForImplementationClass()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.Mapper.attributeForImplementationClass()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.MapperWrapper.attributeForImplementationClass()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.DefaultMapper.attributeForReadResolveField()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.Mapper.attributeForReadResolveField()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.mapper.MapperWrapper.attributeForReadResolveField()
          since 1.2, use aliasForAttribute instead. 
com.thoughtworks.xstream.annotations.Annotations.configureAliases(XStream, Class...)
          since 1.3, use XStream.processAnnotations(Class[]) 
com.thoughtworks.xstream.alias.NameMapper.fromXML(String)
          As of 1.2 
com.thoughtworks.xstream.annotations.AnnotationProvider.getAnnotation(Field, Class)
          since 1.3 
com.thoughtworks.xstream.XStream.getClassMapper()
          As of 1.2, use XStream.getMapper() 
com.thoughtworks.xstream.mapper.DefaultMapper.getConverterFromAttribute(Class, String)
          since 1.3.1, use DefaultMapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.Mapper.getConverterFromAttribute(Class, String)
          since 1.3.1, use Mapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromAttribute(Class, String)
          since 1.3.1, use AttributeMapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromAttribute(Class, String)
          since 1.3.1, use MapperWrapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.DefaultMapper.getConverterFromAttribute(String)
          since 1.3, use DefaultMapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.Mapper.getConverterFromAttribute(String)
          since 1.3, use Mapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromAttribute(String)
          since 1.3, use AttributeMapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromAttribute(String)
          since 1.3, use MapperWrapper.getConverterFromAttribute(Class, String, Class) 
com.thoughtworks.xstream.mapper.DefaultMapper.getConverterFromItemType(Class)
          since 1.3, use DefaultMapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.Mapper.getConverterFromItemType(Class)
          since 1.3, use Mapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromItemType(Class)
          since 1.3, use AttributeMapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType(Class)
          since 1.3, use MapperWrapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.DefaultMapper.getConverterFromItemType(String, Class)
          since 1.3, use DefaultMapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.Mapper.getConverterFromItemType(String, Class)
          since 1.3, use Mapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromItemType(String, Class)
          since 1.3, use AttributeMapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType(String, Class)
          since 1.3, use MapperWrapper.getConverterFromItemType(String, Class, Class) 
com.thoughtworks.xstream.io.path.PathTracker.getCurrentPath()
          Use PathTracker.getPath() instead. 
com.thoughtworks.xstream.io.xml.JDomWriter.getResult()
          since 1.2.1, use AbstractDocumentWriter.getTopLevelNodes() instead 
com.thoughtworks.xstream.MarshallingStrategy.marshal(HierarchicalStreamWriter, Object, DefaultConverterLookup, ClassMapper, DataHolder)
          As of 1.2, use MarshallingStrategy.marshal(HierarchicalStreamWriter, Object, ConverterLookup, Mapper, DataHolder) 
com.thoughtworks.xstream.io.xml.AbstractDocumentReader.peekUnderlyingNode()
          As of 1.2, use AbstractDocumentReader.getCurrent() 
com.thoughtworks.xstream.converters.reflection.FieldDictionary.serializableFieldsFor(Class)
          since 1.3, use FieldDictionary.fieldsFor(Class) instead 
com.thoughtworks.xstream.mapper.AttributeMapper.setConverterLookup(ConverterLookup)
          since 1.3 
com.thoughtworks.xstream.io.json.JsonWriter.startNode(String)
          since 1.2, use startNode(String name, Class clazz) instead. 
com.thoughtworks.xstream.alias.NameMapper.toXML(String)
          As of 1.2 
com.thoughtworks.xstream.MarshallingStrategy.unmarshal(Object, HierarchicalStreamReader, DataHolder, DefaultConverterLookup, ClassMapper)
          As of 1.2, use MarshallingStrategy.unmarshal(Object, HierarchicalStreamReader, DataHolder, ConverterLookup, Mapper) 
 

Deprecated Constructors
com.thoughtworks.xstream.annotations.AnnotationReflectionConverter(Mapper, ReflectionProvider, AnnotationProvider)
           
com.thoughtworks.xstream.mapper.ArrayMapper(ClassMapper)
          As of 1.2, use ArrayMapper.ArrayMapper(Mapper) 
com.thoughtworks.xstream.mapper.AttributeMapper(Mapper)
          since 1.3 
com.thoughtworks.xstream.mapper.CachingMapper(ClassMapper)
          As of 1.2, use CachingMapper.CachingMapper(Mapper) 
com.thoughtworks.xstream.alias.CannotResolveClassException(String)
          As of 1.2 
com.thoughtworks.xstream.mapper.ClassAliasingMapper(ClassMapper)
          since 1.2, use ClassAliasingMapper.ClassAliasingMapper(Mapper) 
com.thoughtworks.xstream.mapper.DefaultImplementationsMapper(ClassMapper)
          As of 1.2, use DefaultImplementationsMapper.DefaultImplementationsMapper(Mapper) 
com.thoughtworks.xstream.mapper.DefaultMapper(ClassLoader, String)
          since 1.2, use XStream.aliasAttrbute() for a different attribute name. 
com.thoughtworks.xstream.mapper.DynamicProxyMapper(ClassMapper)
          As of 1.2, use DynamicProxyMapper.DynamicProxyMapper(Mapper) 
com.thoughtworks.xstream.mapper.DynamicProxyMapper(ClassMapper, String)
          As of 1.2, use DynamicProxyMapper.DynamicProxyMapper(Mapper, String) 
com.thoughtworks.xstream.mapper.EnumMapper(ClassMapper)
          since 1.2, use #EnumMapper(Mapper)) 
com.thoughtworks.xstream.mapper.EnumMapper(Mapper)
           
com.thoughtworks.xstream.mapper.EnumMapper(Mapper, ConverterLookup)
          since 1.3.1, use EnumMapper.EnumMapper(Mapper) 
com.thoughtworks.xstream.mapper.FieldAliasingMapper(ClassMapper)
          As of 1.2, use FieldAliasingMapper.FieldAliasingMapper(Mapper) 
com.thoughtworks.xstream.mapper.ImmutableTypesMapper(ClassMapper)
          As of 1.2, use ImmutableTypesMapper.ImmutableTypesMapper(Mapper) 
com.thoughtworks.xstream.mapper.ImplicitCollectionMapper(ClassMapper)
          As of 1.2, use ImplicitCollectionMapper.ImplicitCollectionMapper(Mapper) 
com.thoughtworks.xstream.converters.javabean.JavaBeanConverter(ClassMapper, String)
          As of 1.2, use JavaBeanConverter.JavaBeanConverter(Mapper) and XStream.aliasAttribute(String, String) 
com.thoughtworks.xstream.converters.javabean.JavaBeanConverter(Mapper, String)
          As of 1.3, use JavaBeanConverter.JavaBeanConverter(Mapper) and XStream.aliasAttribute(String, String) 
com.thoughtworks.xstream.converters.extended.JavaClassConverter()
          As of 1.1.1 - use other constructor and explicitly supply a ClassLoader. 
com.thoughtworks.xstream.converters.extended.JavaMethodConverter()
          As of 1.2 - use other constructor and explicitly supply a ClassLoader. 
com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter(Writer)
          since 1.3.1, use JsonWriter instead 
com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter(Writer, char[])
          since 1.3.1, use JsonWriter instead 
com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter(Writer, char[], String)
          since 1.3.1, use JsonWriter instead 
com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter(Writer, String)
          since 1.3.1, use JsonWriter instead 
com.thoughtworks.xstream.io.json.JsonHierarchicalStreamWriter(Writer, String, String)
          since 1.3.1, use JsonWriter instead 
com.thoughtworks.xstream.mapper.MapperWrapper(ClassMapper)
          As of 1.2, use MapperWrapper.MapperWrapper(Mapper) 
com.thoughtworks.xstream.mapper.OuterClassMapper(ClassMapper)
          As of 1.2, use OuterClassMapper.OuterClassMapper(Mapper) 
com.thoughtworks.xstream.mapper.OuterClassMapper(ClassMapper, String)
          As of 1.2, use OuterClassMapper.OuterClassMapper(Mapper, String) 
com.thoughtworks.xstream.io.xml.PrettyPrintWriter(Writer, char[], String)
          since 1.3 
com.thoughtworks.xstream.io.xml.PrettyPrintWriter(Writer, char[], String, XmlFriendlyReplacer)
          since 1.3 
com.thoughtworks.xstream.io.xml.PrettyPrintWriter(Writer, String, String)
          since 1.3 
com.thoughtworks.xstream.io.xml.StaxDriver(QNameMap, boolean)
          since 1.2, use an explicit call to StaxDriver.setRepairingNamespace(boolean) 
com.thoughtworks.xstream.mapper.XmlFriendlyMapper(ClassMapper)
          since 1.2, use XmlFriendlyMapper.XmlFriendlyMapper(Mapper) 
com.thoughtworks.xstream.mapper.XmlFriendlyMapper(Mapper)
          since 1.3, use XmlFriendlyReader 
com.thoughtworks.xstream.XStream(ReflectionProvider, ClassMapper, HierarchicalStreamDriver)
          As of 1.2, use XStream.XStream(ReflectionProvider, Mapper, HierarchicalStreamDriver) 
com.thoughtworks.xstream.XStream(ReflectionProvider, ClassMapper, HierarchicalStreamDriver, String)
          As of 1.2, use XStream.XStream(ReflectionProvider, Mapper, HierarchicalStreamDriver) and register classAttributeIdentifier as alias 
com.thoughtworks.xstream.XStream(ReflectionProvider, Mapper, HierarchicalStreamDriver)
          since 1.3, use #XStream(ReflectionProvider, HierarchicalStreamDriver, Mapper, ClassLoader) instead 
 



Joe Walnes, http://xstream.codehaus.org/