Package org.apache.juneau.marshall.swaps
Class ReaderSwap
-
Field Summary
Fields inherited from class org.apache.juneau.marshall.swap.spi.ObjectSwap
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionswap(MarshallingSession session, Reader r) Converts the specifiedInputStreamto aString.Methods inherited from class org.apache.juneau.marshall.swap.spi.ObjectSwap
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
-
Constructor Details
-
ReaderSwap
public ReaderSwap()
-
-
Method Details
-
swap
Converts the specifiedInputStreamto aString.- Overrides:
swapin classObjectSwap<Reader,String> - 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.
-