Package eu.simuline.octave.io.impl
Class SparseBooleanWriter
- java.lang.Object
-
- eu.simuline.octave.io.spi.OctaveDataWriter<OctaveSparseBoolean>
-
- eu.simuline.octave.io.impl.SparseBooleanWriter
-
public final class SparseBooleanWriter extends OctaveDataWriter<OctaveSparseBoolean>
The writer for the octave type "sparse bool matrix" writing anOctaveSparseBoolean
to aWriter
.# name: x # type: sparse bool matrix # nnz: 1 # rows: 1 # columns: 1 1 1 1
-
-
Constructor Summary
Constructors Constructor Description SparseBooleanWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<OctaveSparseBoolean>
javaType()
Could be OctaveScalar or OctaveMatrix.void
write(Writer writer, OctaveSparseBoolean octaveSparseBoolean)
-
Methods inherited from class eu.simuline.octave.io.spi.OctaveDataWriter
getOctaveDataWriter
-
-
-
-
Method Detail
-
javaType
public Class<OctaveSparseBoolean> javaType()
Description copied from class:OctaveDataWriter
Could be OctaveScalar or OctaveMatrix.- Specified by:
javaType
in classOctaveDataWriter<OctaveSparseBoolean>
- Returns:
- the
Class
of theOctaveObject
that this IO handler loads and saves
-
write
public void write(Writer writer, OctaveSparseBoolean octaveSparseBoolean) throws IOException
- Specified by:
write
in classOctaveDataWriter<OctaveSparseBoolean>
- Parameters:
writer
- the Writer to write tooctaveSparseBoolean
- the value to write- Throws:
IOException
-
-