public abstract class OctaveDataReader extends Object
OctaveObjects.
The octave type which can be read is given by octaveType()
whereas read(BufferedReader) performs reading.
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.OctaveDataReader.
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,OctaveDataReader> |
rEADERS
Maps the
octaveType()
of an OctaveDataReader to the OctaveDataReader itself
which is able to read the octave type from a reader. |
| Constructor and Description |
|---|
OctaveDataReader() |
| Modifier and Type | Method and Description |
|---|---|
static OctaveDataReader |
getOctaveDataReader(String type) |
private static void |
initReaderIfNecessary() |
abstract String |
octaveType()
Could be "scalar" or "string" or something else.
|
abstract OctaveObject |
read(BufferedReader reader)
Reads an
OctaveObject from a Reader reader. |
private static Map<String,OctaveDataReader> rEADERS
octaveType()
of an OctaveDataReader to the OctaveDataReader itself
which is able to read the octave type from a reader.public static OctaveDataReader getOctaveDataReader(String type)
type - private static void initReaderIfNecessary()
public abstract String octaveType()
OctaveDataReaderpublic abstract OctaveObject read(BufferedReader reader)
OctaveObject from a Reader reader.reader - the Reader to read from, will not close readerreader.Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.