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 fromOctaveObject
s into aMap
.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.Log
LOG
private static String
MSG_IOE_UNEXP
private Map<String,OctaveObject>
varName2Value
A 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 void
doWrites(Writer writer)
Writes the name-value pairs of mapvarName2Value
towriter
.
-
-
-
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 mapvarName2Value
towriter
.- Specified by:
doWrites
in interfaceWriteFunctor
- Parameters:
writer
- the writer this variable to value configuration is to be written to.
-
-