Package pulse.io.export
Class ResidualStatisticExporter
- java.lang.Object
-
- pulse.io.export.ResidualStatisticExporter
-
- All Implemented Interfaces:
Exporter<ResidualStatistic>,Reflexive
public class ResidualStatisticExporter extends Object implements Exporter<ResidualStatistic>
Exports the residuals, where each residual value refers to a specific point in time. Implements both the csv and html formats.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResidualStatisticExportergetInstance()Retrieves the single instance of this class.Extension[]getSupportedExtensions()The supported extensions for exporting the data contained in this object.voidprintToStream(ResidualStatistic rs, FileOutputStream fos, Extension extension)Prints the residuals in a two-column format in ahtmlorcsvfile (accepts both extensions).Class<ResidualStatistic>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
-
target
public Class<ResidualStatistic> 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<ResidualStatistic>- Returns:
ResidualStatistic.class
-
printToStream
public void printToStream(ResidualStatistic rs, FileOutputStream fos, Extension extension)
Prints the residuals in a two-column format in ahtmlorcsvfile (accepts both extensions).- Specified by:
printToStreamin interfaceExporter<ResidualStatistic>- Parameters:
rs- 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()
The supported extensions for exporting the data contained in this object. Currently include.htmland.csv.- Specified by:
getSupportedExtensionsin interfaceExporter<ResidualStatistic>- Returns:
- an array with
Extensiontype objects.
-
getInstance
public static ResidualStatisticExporter getInstance()
Retrieves the single instance of this class.- Returns:
- a single instance of
ResidualStatisticExporter.
-
-