public class TreeMarshaller extends java.lang.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(java.lang.Object item,
Converter converter) |
void |
convertAnother(java.lang.Object item)
Converts another object searching for the default converter
|
void |
convertAnother(java.lang.Object item,
Converter converter)
Converts another object using the specified converter
|
java.lang.Object |
get(java.lang.Object key) |
protected Mapper |
getMapper() |
java.util.Iterator |
keys() |
void |
put(java.lang.Object key,
java.lang.Object value) |
void |
start(java.lang.Object item,
DataHolder dataHolder) |
protected HierarchicalStreamWriter writer
protected ConverterLookup converterLookup
public TreeMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
public void convertAnother(java.lang.Object item)
MarshallingContext
convertAnother
in interface MarshallingContext
item
- the next item to convertpublic void convertAnother(java.lang.Object item, Converter converter)
MarshallingContext
convertAnother
in interface MarshallingContext
item
- the next item to convertconverter
- the Converter to useprotected void convert(java.lang.Object item, Converter converter)
public void start(java.lang.Object item, DataHolder dataHolder)
public java.lang.Object get(java.lang.Object key)
get
in interface DataHolder
public void put(java.lang.Object key, java.lang.Object value)
put
in interface DataHolder
public java.util.Iterator keys()
keys
in interface DataHolder
protected Mapper getMapper()
Copyright © 2004–2024 XStream. All rights reserved.