Package pulse.io.export
Class RawDataExporter
- java.lang.Object
-
- pulse.io.export.RawDataExporter
-
- All Implemented Interfaces:
Exporter<ExperimentalData>,Reflexive
public class RawDataExporter extends Object implements Exporter<ExperimentalData>
A wrapper singleton class that is made specifically to handle export requests ofExperimentalData. Does exactly the same as theCurveExporter, except that its target is specifically set toExperimentalData.- See Also:
ExportDialog
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RawDataExportergetInstance()Retrieves the single static instance of this classExtension[]getSupportedExtensions()Currentlyhtmlandcsvextensions are supported.voidprintToStream(ExperimentalData target, FileOutputStream fos, Extension extension)Invokes theprintToStream(...)method of theHeatingCurveExporterinstance.Class<ExperimentalData>target()Defines the class, instances of which can be fed into the exporter to produce a result.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pulse.io.export.Exporter
askToExport, export
-
-
-
-
Method Detail
-
getInstance
public static RawDataExporter getInstance()
Retrieves the single static instance of this class- Returns:
- an instance of
RawDataExporter.
-
target
public Class<ExperimentalData> target()
Description copied from interface:ExporterDefines the class, instances of which can be fed into the exporter to produce a result.- Specified by:
targetin interfaceExporter<ExperimentalData>- Returns:
ExperimentalData.class
-
printToStream
public void printToStream(ExperimentalData target, FileOutputStream fos, Extension extension)
Invokes theprintToStream(...)method of theHeatingCurveExporterinstance.- Specified by:
printToStreamin interfaceExporter<ExperimentalData>- Parameters:
target- the exported targetfos- a FileOutputStream created by theexportmethodextension- an extension of the file saved on disk- See Also:
Exporter.export(T,java.io.File,pulse.io.export.Extension),Exporter.askToExport(T,javax.swing.JFrame,java.lang.String,java.io.File)
-
getSupportedExtensions
public Extension[] getSupportedExtensions()
Currentlyhtmlandcsvextensions are supported.- Specified by:
getSupportedExtensionsin interfaceExporter<ExperimentalData>- Returns:
- an array with
Extensiontype objects.
-
-