Package org.apache.juneau.swaps
Class ReaderSwap
-
Field Summary
Fields inherited from class org.apache.juneau.swap.ObjectSwap
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionswap(BeanSession session, Reader r) Converts the specifiedInputStreamto aString.Methods inherited from class org.apache.juneau.swap.StringSwap
unswapMethods 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 specifiedInputStreamto aString.- Overrides:
swapin 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.
-