Package eu.simuline.octave.exec
Class ReaderWriteFunctor
- java.lang.Object
-
- eu.simuline.octave.exec.ReaderWriteFunctor
-
- All Implemented Interfaces:
WriteFunctor
public final class ReaderWriteFunctor extends Object implements WriteFunctor
Reads all from the reader and writes it to the writer.
-
-
Constructor Summary
Constructors Constructor Description ReaderWriteFunctor(Reader reader)
-
-
-
Field Detail
-
reader
private final Reader reader
-
-
Constructor Detail
-
ReaderWriteFunctor
public ReaderWriteFunctor(Reader reader)
- Parameters:
reader
-
-
-
Method Detail
-
doWrites
public void doWrites(Writer writer) throws IOException
Description copied from interface:WriteFunctor
Write the input to an eval().- Specified by:
doWrites
in interfaceWriteFunctor
- Parameters:
writer
- Writer to write to- Throws:
IOException
- on IO error from writer
-
-