T - the type extending OctaveObject this writer can write.public abstract class OctaveDataWriter<T extends OctaveObject> extends Object
OctaveObjects.
The according implementations
are in package eu.simuline.octave.io.impl
and extend this class.
These classes are registered in the jar-file
under META-INF/services/eu.simuline.octave.io.OctaveDataWriter.| Modifier and Type | Field and Description |
|---|---|
private static Map<Class<? extends OctaveObject>,OctaveDataWriter<?>> |
wRITERS
Maps the
javaType()
which represents an octave type
of an OctaveDataWriter to the OctaveDataWriter itself
which is able to write the octave type to a writer. |
| Constructor and Description |
|---|
OctaveDataWriter() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends OctaveObject> |
getOctaveDataWriter(T type) |
private static void |
initWriterIfNecessary() |
abstract Class<T> |
javaType()
Could be OctaveScalar or OctaveMatrix.
|
abstract void |
write(Writer writer,
T octaveType) |
private static Map<Class<? extends OctaveObject>,OctaveDataWriter<?>> wRITERS
javaType()
which represents an octave type
of an OctaveDataWriter to the OctaveDataWriter itself
which is able to write the octave type to a writer.public static <T extends OctaveObject> OctaveDataWriter<T> getOctaveDataWriter(T type)
T - type - private static void initWriterIfNecessary()
public abstract Class<T> javaType()
Class of the OctaveObject
that this IO handler loads and savespublic abstract void write(Writer writer, T octaveType) throws IOException
writer - the Writer to write tooctaveType - the value to writeIOExceptionCopyright © 2006–2018 Simuline Organization (l2r). All rights reserved.