Package eu.simuline.octave.io.impl
Class AbstractPrimitiveMatrixWriter<T extends AbstractGenericMatrix<?,?>>
- java.lang.Object
-
- eu.simuline.octave.io.spi.OctaveDataWriter<T>
-
- eu.simuline.octave.io.impl.AbstractPrimitiveMatrixWriter<T>
-
- Type Parameters:
T- the type to be written out which has to extendAbstractGenericMatrix.
- Direct Known Subclasses:
AbstractLogicalFloatingPointWriter,Int32MatrixWriter,Int64MatrixWriter,Uint8MatrixWriter
abstract class AbstractPrimitiveMatrixWriter<T extends AbstractGenericMatrix<?,?>> extends OctaveDataWriter<T>
Common Writer class for primitive java types: Boolean, Double, Integer....
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPrimitiveMatrixWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringoctaveMatrixType()protected abstract StringoctaveScalarType()protected voidsaveDataVectorized(Writer writer, T octaveMatrix)voidwrite(Writer writer, T octaveMatrix)-
Methods inherited from class eu.simuline.octave.io.spi.OctaveDataWriter
getOctaveDataWriter, javaType
-
-
-
-
Field Detail
-
NDIMS
protected static final String NDIMS
- See Also:
- Constant Field Values
-
NROWS
protected static final String NROWS
- See Also:
- Constant Field Values
-
NCOLUMNS
protected static final String NCOLUMNS
- See Also:
- Constant Field Values
-
-
Method Detail
-
octaveMatrixType
protected abstract String octaveMatrixType()
-
octaveScalarType
protected abstract String octaveScalarType()
-
write
public void write(Writer writer, T octaveMatrix) throws IOException
- Specified by:
writein classOctaveDataWriter<T extends AbstractGenericMatrix<?,?>>- Parameters:
writer- the Writer to write tooctaveMatrix- the value to write- Throws:
IOException
-
saveDataVectorized
protected void saveDataVectorized(Writer writer, T octaveMatrix) throws IOException
- Throws:
IOException
-
-