org.apache.shindig.protocol.conversion.xstream
Class DataCollectionConverter
java.lang.Object
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
org.apache.shindig.protocol.conversion.xstream.DataCollectionConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
public class DataCollectionConverter
- extends com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
This converter changes the way in which a collection is serialized
|
Method Summary |
boolean |
canConvert(Class clazz)
|
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
|
| Methods inherited from class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter |
createCollection, mapper, readItem, writeItem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataCollectionConverter
public DataCollectionConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
- Parameters:
mapper -
canConvert
public boolean canConvert(Class clazz)
-
- Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher- Specified by:
canConvert in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
- See Also:
AbstractCollectionConverter.canConvert(java.lang.Class)
marshal
public void marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
-
- Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter- Specified by:
marshal in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
- See Also:
AbstractCollectionConverter.marshal(java.lang.Object,
com.thoughtworks.xstream.io.HierarchicalStreamWriter,
com.thoughtworks.xstream.converters.MarshallingContext)
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
- Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter- Specified by:
unmarshal in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
- See Also:
AbstractCollectionConverter.unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader,
com.thoughtworks.xstream.converters.UnmarshallingContext)
Copyright © 2007-2012. All Rights Reserved.