public class TreeMarshaller extends Object implements MarshallingContext
Modifier and Type | Class and Description |
---|---|
static class |
TreeMarshaller.CircularReferenceException |
Modifier and Type | Field and Description |
---|---|
protected ConverterLookup |
converterLookup |
protected HierarchicalStreamWriter |
writer |
Constructor and Description |
---|
TreeMarshaller(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper) |
Modifier and Type | Method and Description |
---|---|
protected void |
convert(Object item,
Converter converter) |
void |
convertAnother(Object item)
Converts another object searching for the default converter
|
void |
convertAnother(Object item,
Converter converter)
Converts another object using the specified converter
|
Object |
get(Object key) |
protected Mapper |
getMapper() |
Iterator |
keys() |
void |
put(Object key,
Object value) |
void |
start(Object item,
DataHolder dataHolder) |
protected HierarchicalStreamWriter writer
protected ConverterLookup converterLookup
public TreeMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
public void convertAnother(Object item)
MarshallingContext
convertAnother
in interface MarshallingContext
item
- the next item to convertpublic void convertAnother(Object item, Converter converter)
MarshallingContext
convertAnother
in interface MarshallingContext
item
- the next item to convertconverter
- the Converter to usepublic void start(Object item, DataHolder dataHolder)
public Object get(Object key)
get
in interface DataHolder
public void put(Object key, Object value)
put
in interface DataHolder
public Iterator keys()
keys
in interface DataHolder
protected Mapper getMapper()
Copyright © 2004–2016 XStream. All rights reserved.