Usage:
WebUtils.xstream.registerConverter(new XStreamBinaryConverter(MyClass.class));
(all serialisation/deserialisation of this class will now use binary)
Legacy issues: binary converters are not compatible with non-binary serialisations of objects. Sorry. @warning Initialisation issues: if you fail to register the converter beforedeserialising, you may get a wrong object back, rather than an exception! @author daniel @testedby {@link XStreamBinaryConverterTest}
|
|