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 OctaveObject
data
AfterdoReads(Reader)
returns, this contains the read data.private String
name
The 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 void
doReads(Reader reader)
Read the output from an eval().OctaveObject
getData()
-
-
-
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:ReadFunctor
Read the output from an eval().- Specified by:
doReads
in interfaceReadFunctor
- Parameters:
reader
-
-
getData
public OctaveObject getData()
- Returns:
- the data
-
-