org.springframework.oxm.xstream
Class XStreamUtils

java.lang.Object
  extended by org.springframework.oxm.xstream.XStreamUtils

abstract class XStreamUtils
extends java.lang.Object

Generic utility methods for working with XStream. Mainly for internal use within the framework.

Since:
3.0
Author:
Arjen Poutsma, Juergen Hoeller

Constructor Summary
XStreamUtils()
           
 
Method Summary
static XmlMappingException convertXStreamException(java.lang.Exception ex, boolean marshalling)
          Convert the given XStream exception to an appropriate exception from the org.springframework.oxm hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamUtils

XStreamUtils()
Method Detail

convertXStreamException

public static XmlMappingException convertXStreamException(java.lang.Exception ex,
                                                          boolean marshalling)
Convert the given XStream exception to an appropriate exception from the org.springframework.oxm hierarchy.

A boolean flag is used to indicate whether this exception occurs during marshalling or unmarshalling, since XStream itself does not make this distinction in its exception hierarchy.

Parameters:
ex - XStream exception that occured
marshalling - indicates whether the exception occurs during marshalling (true), or unmarshalling (false)
Returns:
the corresponding XmlMappingException