Package eu.simuline.octave.io.impl
Class CellWriter
- java.lang.Object
-
- eu.simuline.octave.io.spi.OctaveDataWriter<OctaveCell>
-
- eu.simuline.octave.io.impl.CellWriter
-
public final class CellWriter extends OctaveDataWriter<OctaveCell>
The writer for the octave type "cell" writing anOctaveCell
to aWriter
.
-
-
Constructor Summary
Constructors Constructor Description CellWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<OctaveCell>
javaType()
Could be OctaveScalar or OctaveMatrix.void
write(Writer writer, OctaveCell octaveCell)
-
Methods inherited from class eu.simuline.octave.io.spi.OctaveDataWriter
getOctaveDataWriter
-
-
-
-
Field Detail
-
TYPE_CELL
static final String TYPE_CELL
- See Also:
- Constant Field Values
-
NROWS
static final String NROWS
- See Also:
- Constant Field Values
-
NCOLUMNS
static final String NCOLUMNS
- See Also:
- Constant Field Values
-
-
Method Detail
-
javaType
public Class<OctaveCell> javaType()
Description copied from class:OctaveDataWriter
Could be OctaveScalar or OctaveMatrix.- Specified by:
javaType
in classOctaveDataWriter<OctaveCell>
- Returns:
- the
Class
of theOctaveObject
that this IO handler loads and saves
-
write
public void write(Writer writer, OctaveCell octaveCell) throws IOException
- Specified by:
write
in classOctaveDataWriter<OctaveCell>
- Parameters:
writer
- the Writer to write tooctaveCell
- the value to write- Throws:
IOException
-
-