| Modifier and Type | Field and Description |
|---|---|
| private Converter | |
| private final ConverterLookup |
| Access | Constructor and Description |
|---|---|
| public | ThrowableConverter(Converter defaultConverter)
Deprecated
As of 1.4.5 use
ThrowableConverter(ConverterLookup)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(final Class<T>
the Class representing the object type to be converted type)Implements com. |
| private Converter | |
| public void | marshal(Object
The object to be marshalled. source, HierarchicalStreamWriter A stream to write to. writer, MarshallingContext A context that allows nested objects to be processed by XStream. context)Implements com. |
| public Object | unmarshal(HierarchicalStreamReader
The stream to read the text from. reader, UnmarshallingContext context)Implements com. |
| defaultConverter | back to summary |
|---|---|
| private Converter defaultConverter | |
| lookup | back to summary |
|---|---|
| private final ConverterLookup lookup | |
| ThrowableConverter | back to summary |
|---|---|
| public ThrowableConverter(Converter defaultConverter)
Deprecated As of 1.4.5 use | |
| ThrowableConverter | back to summary |
|---|---|
public ThrowableConverter(ConverterLookup lookup)
| |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(final Class<T> type) Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| getConverter | back to summary |
|---|---|
| private Converter getConverter() | |
| marshal | back to summary |
|---|---|
| public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) Implements com. Doc from com. Convert an object to textual data.
| |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Implements com. Doc from com. Convert textual data back into an object.
| |