Package it.ovunque.serializza.xstream
Class ConvertitoreMappeJs
java.lang.Object
it.ovunque.serializza.xstream.ConvertitoreMappeJs
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter,com.thoughtworks.xstream.converters.ConverterMatcher
public class ConvertitoreMappeJs
extends Object
implements com.thoughtworks.xstream.converters.Converter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class type) Determines whether the converter can marshall a particular type.voidmarshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter scr, com.thoughtworks.xstream.converters.MarshallingContext context) Convert an object to textual data.unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) Convert textual data back into an object.
-
Constructor Details
-
ConvertitoreMappeJs
public ConvertitoreMappeJs()
-
-
Method Details
-
marshal
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter scr, com.thoughtworks.xstream.converters.MarshallingContext context) Description copied from interface:com.thoughtworks.xstream.converters.ConverterConvert an object to textual data.- Specified by:
marshalin interfacecom.thoughtworks.xstream.converters.Converter- Parameters:
source- The object to be marshalled.scr- A stream to write to.context- A context that allows nested objects to be processed by XStream.
-
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) Description copied from interface:com.thoughtworks.xstream.converters.ConverterConvert textual data back into an object.- Specified by:
unmarshalin interfacecom.thoughtworks.xstream.converters.Converter- Parameters:
reader- The stream to read the text from.- Returns:
- The resulting object.
-
canConvert
Description copied from interface:com.thoughtworks.xstream.converters.ConverterMatcherDetermines whether the converter can marshall a particular type.- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher- Parameters:
type- the Class representing the object type to be converted- See Also:
-
ConverterMatcher.canConvert(java.lang.Class)
-