Package eu.simuline.octave.io
Class DataWriteFunctor
- java.lang.Object
-
- eu.simuline.octave.io.DataWriteFunctor
-
- All Implemented Interfaces:
WriteFunctor
final class DataWriteFunctor extends Object implements WriteFunctor
Write data fromOctaveObjects into aMap.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.LogLOGprivate static StringMSG_IOE_UNEXPprivate Map<String,OctaveObject>varName2ValueA map from variable names to according octave objects.
-
Constructor Summary
Constructors Constructor Description DataWriteFunctor(Map<String,OctaveObject> varName2Value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoWrites(Writer writer)Writes the name-value pairs of mapvarName2Valuetowriter.
-
-
-
Field Detail
-
MSG_IOE_UNEXP
private static final String MSG_IOE_UNEXP
- See Also:
- Constant Field Values
-
LOG
private static final org.apache.commons.logging.Log LOG
-
varName2Value
private final Map<String,OctaveObject> varName2Value
A map from variable names to according octave objects.
-
-
Constructor Detail
-
DataWriteFunctor
DataWriteFunctor(Map<String,OctaveObject> varName2Value)
- Parameters:
varName2Value- A map from variable names to according octave objects.
-
-
Method Detail
-
doWrites
public void doWrites(Writer writer)
Writes the name-value pairs of mapvarName2Valuetowriter.- Specified by:
doWritesin interfaceWriteFunctor- Parameters:
writer- the writer this variable to value configuration is to be written to.
-
-