Class ReaderReader


  • public class ReaderReader
    extends java.lang.Object
    ReaderReader reads a Reader.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReaderReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Reader prepare​(java.io.InputStream inner)
      Wrap the given InputStream inside a Reader.
      java.lang.String read​(java.io.Reader reader)
      Consume the contents of the given Reader and transform it into a String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReaderReader

        public ReaderReader()
    • Method Detail

      • read

        public java.lang.String read​(java.io.Reader reader)
        Consume the contents of the given Reader and transform it into a String.
        Parameters:
        reader - The Reader whose contents are to be read.
        Returns:
        The contents of the given Reader as a String.
      • prepare

        public java.io.Reader prepare​(java.io.InputStream inner)
        Wrap the given InputStream inside a Reader.
        Parameters:
        inner - The InputStream to be wrapped.
        Returns:
        A Reader that wraps the inner InputStream.