public class TreeSetConverter extends CollectionConverter
Constructor and Description |
---|
TreeSetConverter(Mapper mapper) |
Modifier and Type | Method and Description |
---|---|
void |
marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
java.lang.Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
addCurrentElementToCollection, canConvert, createCollection, populateCollection, populateCollection
mapper, readBareItem, readCompleteItem, readItem, writeBareItem, writeCompleteItem, writeItem, writeNullItem
public TreeSetConverter(Mapper mapper)
public void marshal(java.lang.Object source, HierarchicalStreamWriter writer, MarshallingContext context)
Converter
marshal
in interface Converter
marshal
in class CollectionConverter
source
- The object to be marshalled.writer
- A stream to write to.context
- A context that allows nested objects to be processed by XStream.public java.lang.Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converter
unmarshal
in interface Converter
unmarshal
in class CollectionConverter
reader
- The stream to read the text from.Copyright © 2004–2022 XStream. All rights reserved.