Class MappedReader<IN,OUT>
java.lang.Object
org.ojalgo.netio.MappedReader<IN,OUT>
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<OUT>, FromFileReader<OUT>
-
Nested Class Summary
Nested classes/interfaces inherited from interface FromFileReader
FromFileReader.Builder<F> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMappedReader(FromFileReader<IN> supplier, Function<IN, OUT> mapper) MappedReader(FromFileReader<IN> reader, Predicate<IN> filter, Function<IN, OUT> mapper) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FromFileReader
drainTo, forEachInBacthes, iterator, map, streamMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
myFilter
-
myMapper
-
myReader
-
-
Constructor Details
-
MappedReader
MappedReader(FromFileReader<IN> supplier, Function<IN, OUT> mapper) -
MappedReader
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceFromFileReader<IN>- Throws:
IOException
-
read
Description copied from interface:FromFileReaderReturning null indicates that there are no more items to read. That's the same behaviour asBufferedReader.readLine(). All implementations must return null precisely once.- Specified by:
readin interfaceFromFileReader<IN>
-