public class ReaderSwap extends StringSwap<Reader>
Readers to Strings.| Constructor and Description |
|---|
ReaderSwap() |
| Modifier and Type | Method and Description |
|---|---|
String |
swap(BeanSession session,
Reader r)
Converts the specified
InputStream to a String. |
unswapforMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplatepublic ReaderSwap()
public String swap(BeanSession session, Reader r) throws Exception
InputStream to a String.swap in class StringSwap<Reader>session - The bean session to use to get the class meta.
This is always going to be the same bean context that created this swap.r - The object to be transformed.Exception - If a problem occurred trying to convert the output.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.