Class ReaderSwap


public class ReaderSwap extends StringSwap<Reader>
Transforms Readers to Strings.
See Also:
  • Constructor Details

  • Method Details

    • swap

      public String swap(BeanSession session, Reader r) throws Exception
      Converts the specified InputStream to a String.
      Overrides:
      swap in 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.