| Constructor and Description |
|---|
DummyMapper(Function<T,ConfigurationHelper<T>> configurationHelperCreator)
Creates a dummy
Mapper with a ConfigurationHelper factory function. |
| Modifier and Type | Method and Description |
|---|---|
T |
apply(InputStream input)
Applies this
Mapper into the given input. |
ConfigurationHelper<T> |
configurationHelper(T bean)
Creates a new
ConfigurationHelper instance recommended by this Mapper. |
public DummyMapper(Function<T,ConfigurationHelper<T>> configurationHelperCreator)
Mapper with a ConfigurationHelper factory function.configurationHelperCreator - the ConfigurationHelper factory function to
be applied by this Mapper; not nullNullPointerException - if a null helper factory function is providedpublic T apply(InputStream input) throws IOException
MapperMapper into the given input.
Note: The input stream must be closed by the caller after the mapping operation.
apply in interface Mapper<T>input - the input stream to be mappedIOException - if a low-level I/O problem (such and unexpected end-of-input, or
network error) occurspublic ConfigurationHelper<T> configurationHelper(T bean)
MapperConfigurationHelper instance recommended by this Mapper.configurationHelper in interface Mapper<T>bean - the configuration object to be used by the helperConfigurationHelper instanceCopyright © 2022. All rights reserved.