Package eu.simuline.octave.io.impl
Class ScalarStructReader
- java.lang.Object
-
- eu.simuline.octave.io.spi.OctaveDataReader
-
- eu.simuline.octave.io.impl.ScalarStructReader
-
public final class ScalarStructReader extends OctaveDataReader
The reader for the octave type "scalar struct" (which is an encoding similar to "struct" introduced in octave 3.6, optimized to the 1x1 struct) reading anOctaveObject
from aBufferedReader
.
-
-
Constructor Summary
Constructors Constructor Description ScalarStructReader()
-
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
-
NAME
private static final String NAME
- See Also:
- Constant Field Values
-
LENGTH
private static final String LENGTH
- See Also:
- Constant Field Values
-
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
-
-
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
.
-
-