ReaderMethods
Provides extension methods for java.io.Reader
.
- See also:
WriterMethods
Value members
Concrete methods
Filters lines reader reader using supplied predicate.
Filters lines reader reader using supplied predicate.
- Value parameters:
- p
predicate
Builds collection using elements mapped from lines reader reader.
Builds collection using elements mapped from lines reader reader.
- Value parameters:
- f
function
Folds lines from reader to single value using given initial value and binary operator.
Folds lines from reader to single value using given initial value and binary operator.
- Value parameters:
- init
initial value
- op
binary operator
- Returns:
init
if end of stream; otherwise, last value returned fromop
Reads content and invokes supplied function for each line.
Reads content and invokes supplied function for each line.
The line content, excluding line separator, is passed to function.
- Value parameters:
- f
function