Package com.lingocoder.io
Class ReaderReader
- java.lang.Object
-
- com.lingocoder.io.ReaderReader
-
public class ReaderReader extends java.lang.Object
ReaderReader
reads aReader
.
-
-
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 givenInputStream
inside aReader
.java.lang.String
read(java.io.Reader reader)
Consume the contents of the givenReader
and transform it into aString
.
-
-
-
Method Detail
-
read
public java.lang.String read(java.io.Reader reader)
Consume the contents of the givenReader
and transform it into aString
.- Parameters:
reader
- TheReader
whose contents are to be read.- Returns:
- The contents of the given
Reader
as aString
.
-
prepare
public java.io.Reader prepare(java.io.InputStream inner)
Wrap the givenInputStream
inside aReader
.- Parameters:
inner
- TheInputStream
to be wrapped.- Returns:
- A
Reader
that wraps theinner
InputStream
.
-
-