public class TreeSetConverter extends CollectionConverter
| Constructor and Description |
|---|
TreeSetConverter(Mapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
marshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
addCurrentElementToCollection, canConvert, createCollection, populateCollection, populateCollectionmapper, readItem, writeItempublic TreeSetConverter(Mapper mapper)
public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
Convertermarshal in interface Convertermarshal in class CollectionConvertersource - The object to be marshalled.writer - A stream to write to.context - A context that allows nested objects to be processed by XStream.public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converterunmarshal in interface Converterunmarshal in class CollectionConverterreader - The stream to read the text from.Copyright © 2004-2014 XStream. All Rights Reserved.