Package eu.simuline.octave.io
Class DataReadFunctor
- java.lang.Object
-
- eu.simuline.octave.io.DataReadFunctor
-
- All Implemented Interfaces:
ReadFunctor
final class DataReadFunctor extends Object implements ReadFunctor
-
-
Field Summary
Fields Modifier and Type Field Description private OctaveObjectdataAfterdoReads(Reader)returns, this contains the read data.private StringnameThe name of the variable to be read.
-
Constructor Summary
Constructors Constructor Description DataReadFunctor(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoReads(Reader reader)Read the output from an eval().OctaveObjectgetData()
-
-
-
Field Detail
-
name
private final String name
The name of the variable to be read.
-
data
private OctaveObject data
AfterdoReads(Reader)returns, this contains the read data.
-
-
Constructor Detail
-
DataReadFunctor
DataReadFunctor(String name)
- Parameters:
name-
-
-
Method Detail
-
doReads
public void doReads(Reader reader)
Description copied from interface:ReadFunctorRead the output from an eval().- Specified by:
doReadsin interfaceReadFunctor- Parameters:
reader-
-
getData
public OctaveObject getData()
- Returns:
- the data
-
-