public class PropertiesMapper extends Object implements Mapper<Properties>
Mapper that loads the contents of a Source (e.g.: file,
URL) as Properties (a table of key-value pairs).| Constructor and Description |
|---|
PropertiesMapper() |
| Modifier and Type | Method and Description |
|---|---|
Properties |
apply(InputStream inputStream)
Applies this
Mapper into the given input. |
ConfigurationHelper<Properties> |
configurationHelper(Properties properties)
Creates a new
ConfigurationHelper instance recommended by this Mapper. |
public Properties apply(InputStream inputStream) 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<Properties>inputStream - the input stream to be mappedIOException - if a low-level I/O problem (such and unexpected end-of-input, or
network error) occurspublic ConfigurationHelper<Properties> configurationHelper(Properties properties)
MapperConfigurationHelper instance recommended by this Mapper.configurationHelper in interface Mapper<Properties>properties - the configuration object to be used by the helperConfigurationHelper instanceCopyright © 2022. All rights reserved.