Package org.apache.juneau.swaps
Class ReaderSwap
- 
Field SummaryFields inherited from class org.apache.juneau.swap.ObjectSwapNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionswap(BeanSession session, Reader r) Converts the specifiedInputStreamto aString.Methods inherited from class org.apache.juneau.swap.StringSwapunswapMethods inherited from class org.apache.juneau.swap.ObjectSwapforMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplate
- 
Constructor Details- 
ReaderSwappublic ReaderSwap()
 
- 
- 
Method Details- 
swapConverts the specifiedInputStreamto aString.- Overrides:
- swapin class- StringSwap<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.
 
 
-