Package eu.simuline.octave.io.impl
Class StructReader
- java.lang.Object
-
- eu.simuline.octave.io.spi.OctaveDataReader
-
- eu.simuline.octave.io.impl.StructReader
-
public final class StructReader extends OctaveDataReader
The reader for the octave type "struct" reading anOctaveStruct
from aBufferedReader
. Reads the format written byStructWriter
-
-
Field Summary
Fields Modifier and Type Field Description private static CellReader
CELL_READER
private static String
N_DIMS2
private static String
V_DIMS2
-
Constructor Summary
Constructors Constructor Description StructReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
octaveType()
Could be "scalar" or "string" or something else.OctaveStruct
read(BufferedReader reader)
Reads anOctaveObject
from a Readerreader
.-
Methods inherited from class eu.simuline.octave.io.spi.OctaveDataReader
getOctaveDataReader
-
-
-
-
Field Detail
-
N_DIMS2
private static final String N_DIMS2
- See Also:
- Constant Field Values
-
V_DIMS2
private static final String V_DIMS2
- See Also:
- Constant Field Values
-
CELL_READER
private static final CellReader CELL_READER
-
-
Method Detail
-
octaveType
public String octaveType()
Description copied from class:OctaveDataReader
Could be "scalar" or "string" or something else.- Specified by:
octaveType
in classOctaveDataReader
- Returns:
- the string representation of the octave type
read by this
OctaveDataReader
-
read
public OctaveStruct read(BufferedReader reader)
Description copied from class:OctaveDataReader
Reads anOctaveObject
from a Readerreader
.- Specified by:
read
in classOctaveDataReader
- Parameters:
reader
- the Reader to read from, will not close reader- Returns:
- the object read from
reader
.
-
-