public class DefaultConverterLookup extends java.lang.Object implements ConverterLookup, ConverterRegistry, Caching
Constructor and Description |
---|
DefaultConverterLookup() |
DefaultConverterLookup(java.util.Map map)
Constructs a DefaultConverterLookup with a provided map.
|
DefaultConverterLookup(Mapper mapper)
Deprecated.
As of 1.3, use
DefaultConverterLookup() |
Modifier and Type | Method and Description |
---|---|
void |
flushCache() |
Converter |
lookupConverterForType(java.lang.Class type)
Lookup a converter for a specific type.
|
void |
registerConverter(Converter converter,
int priority) |
public DefaultConverterLookup()
public DefaultConverterLookup(java.util.Map map)
map
- the map to usejava.lang.NullPointerException
- if map is nullpublic DefaultConverterLookup(Mapper mapper)
DefaultConverterLookup()
public Converter lookupConverterForType(java.lang.Class type)
ConverterLookup
This type may be any Class, including primitive and array types. It may also be null, signifying the value to be converted is a null type.
lookupConverterForType
in interface ConverterLookup
public void registerConverter(Converter converter, int priority)
registerConverter
in interface ConverterRegistry
public void flushCache()
flushCache
in interface Caching
Copyright © 2004–2024 XStream. All rights reserved.