public class StringMapper extends AbstractBeanMapper<String> implements Mapper<String>
Mapper that loads the contents of a Source (e.g.: file,
URL) as a String using the JVM default Charset, typically for
testing/troubleshooting or manual handling purposes.| Constructor and Description |
|---|
StringMapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(InputStream inputStream)
Applies this
Mapper into the given input. |
configurationHelperequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurationHelperpublic String 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<String>inputStream - the input stream to be mappedIOException - if a low-level I/O problem (such and unexpected end-of-input, or
network error) occursCopyright © 2021. All rights reserved.