Package eu.simuline.octave.io.impl
Class OctaveStringWriter
- java.lang.Object
-
- eu.simuline.octave.io.spi.OctaveDataWriter<OctaveString>
-
- eu.simuline.octave.io.impl.OctaveStringWriter
-
public final class OctaveStringWriter extends OctaveDataWriter<OctaveString>
The writer for the octave type "string" writing anOctaveString
to aWriter
. The name isOctaveStringWriter
instead ofStringWriter
to avoid name clash withStringWriter
.
-
-
Constructor Summary
Constructors Constructor Description OctaveStringWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<OctaveString>
javaType()
Could be OctaveScalar or OctaveMatrix.void
write(Writer writer, OctaveString octaveString)
-
Methods inherited from class eu.simuline.octave.io.spi.OctaveDataWriter
getOctaveDataWriter
-
-
-
-
Method Detail
-
javaType
public Class<OctaveString> javaType()
Description copied from class:OctaveDataWriter
Could be OctaveScalar or OctaveMatrix.- Specified by:
javaType
in classOctaveDataWriter<OctaveString>
- Returns:
- the
Class
of theOctaveObject
that this IO handler loads and saves
-
write
public void write(Writer writer, OctaveString octaveString) throws IOException
- Specified by:
write
in classOctaveDataWriter<OctaveString>
- Parameters:
writer
- the Writer to write tooctaveString
- the value to write- Throws:
IOException
-
-