Package org.apache.juneau.swaps
Class ReaderSwap
-
Field Summary
Fields inherited from class org.apache.juneau.swap.ObjectSwap
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionswap
(BeanSession session, Reader r) Converts the specifiedInputStream
to aString
.Methods inherited from class org.apache.juneau.swap.StringSwap
unswap
Methods inherited from class org.apache.juneau.swap.ObjectSwap
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplate
-
Constructor Details
-
ReaderSwap
public ReaderSwap()
-
-
Method Details
-
swap
Converts the specifiedInputStream
to aString
.- Overrides:
swap
in classStringSwap<Reader>
- Parameters:
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.- Returns:
- The transformed object.
- Throws:
Exception
- If a problem occurred trying to convert the output.
-