public final class StructWriter extends OctaveDataWriter<OctaveStruct>
OctaveStruct to a Writer.
The format is
# type: struct\n # length: ...\n // comment: the following is in a loop of given length
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
LENGTH |
(package private) static String |
NAME |
(package private) static String |
TYPE_CELL |
| Constructor and Description |
|---|
StructWriter() |
| Modifier and Type | Method and Description |
|---|---|
Class<OctaveStruct> |
javaType()
Could be OctaveScalar or OctaveMatrix.
|
void |
write(Writer writer,
OctaveStruct octaveStruct) |
getOctaveDataWriterstatic final String LENGTH
static final String NAME
static final String TYPE_CELL
public Class<OctaveStruct> javaType()
OctaveDataWriterjavaType in class OctaveDataWriter<OctaveStruct>Class of the OctaveObject
that this IO handler loads and savespublic void write(Writer writer, OctaveStruct octaveStruct) throws IOException
write in class OctaveDataWriter<OctaveStruct>writer - the Writer to write tooctaveStruct - the value to writeIOExceptionCopyright © 2006–2018 Simuline Organization (l2r). All rights reserved.