Package eu.simuline.octave.io.impl
Class AbstractPrimitiveScalarReader<T extends AbstractGenericMatrix<?,?>>
- java.lang.Object
-
- eu.simuline.octave.io.spi.OctaveDataReader
-
- eu.simuline.octave.io.impl.AbstractPrimitiveScalarReader<T>
-
- Type Parameters:
T
- the type to be read in which has to extendAbstractGenericMatrix
.
- Direct Known Subclasses:
BooleanSingleReader
,Int32ScalarReader
,Int64ScalarReader
,ScalarReader
abstract class AbstractPrimitiveScalarReader<T extends AbstractGenericMatrix<?,?>> extends OctaveDataReader
Common Reader class for scalars of primitive java types: Boolean, Double, Integer....
-
-
Constructor Summary
Constructors Constructor Description AbstractPrimitiveScalarReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract T
createOctaveScalar()
T
read(BufferedReader reader)
Reads anOctaveObject
from a Readerreader
.-
Methods inherited from class eu.simuline.octave.io.spi.OctaveDataReader
getOctaveDataReader, octaveType
-
-
-
-
Method Detail
-
read
public final T 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
.
-
createOctaveScalar
abstract T createOctaveScalar()
-
-