Package pulse.io.export
Class ResultExporter
- java.lang.Object
-
- pulse.io.export.ResultExporter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultExportergetInstance()Returns the single static instance of this class.Extension[]getSupportedExtensions()Currently the supported extensions include.htmland.csv.voidprintToStream(Result result, FileOutputStream fos, Extension extension)Prints the data of thisResultwithfoseither in ahtmlor acsvfile format.Class<Result>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
-
printToStream
public void printToStream(Result result, FileOutputStream fos, Extension extension)
Prints the data of thisResultwithfoseither in ahtmlor acsvfile format.- Specified by:
printToStreamin interfaceExporter<Result>- Parameters:
result- 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()
Currently the supported extensions include.htmland.csv.- Specified by:
getSupportedExtensionsin interfaceExporter<Result>- Returns:
- an array with
Extensiontype objects.
-
target
public Class<Result> target()
Description copied from interface:ExporterDefines the class, instances of which can be fed into the exporter to produce a result.
-
getInstance
public static ResultExporter getInstance()
Returns the single static instance of this class.- Returns:
- instance an instance of this class.
-
-