Package pulse.io.export
Class LogExporter
- java.lang.Object
-
- pulse.io.export.LogExporter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogExportergetInstance()Gets the only static instance of this subclass.Extension[]getSupportedExtensions()Only html is currently supported by this exporter.voidprintToStream(Log log, FileOutputStream fos, Extension extension)Prints all the data contained in thisLogusingfos.Class<Log>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 LogExporter getInstance()
Gets the only static instance of this subclass.- Returns:
- an instance of
LogExporter.
-
printToStream
public void printToStream(Log log, FileOutputStream fos, Extension extension)
Prints all the data contained in thisLogusingfos. By default, this will output all data in anhtmlformat. Note this implementation ignores theextensionparameter. After execution, the stream is explicitly closed.- Specified by:
printToStreamin interfaceExporter<Log>- Parameters:
log- a log to be exportedfos- an output streamextension- the desired extension- See Also:
Exporter.export(T,java.io.File,pulse.io.export.Extension),Exporter.askToExport(T,javax.swing.JFrame,java.lang.String,java.io.File)
-
target
public Class<Log> target()
Description copied from interface:ExporterDefines the class, instances of which can be fed into the exporter to produce a result.
-
getSupportedExtensions
public Extension[] getSupportedExtensions()
Only html is currently supported by this exporter.- Specified by:
getSupportedExtensionsin interfaceExporter<Log>- Returns:
- an array with
Extensiontype objects.
-
-