nl.lxtreme.ols.tool.base
Interface ExportAware<RESULT_TYPE>


public interface ExportAware<RESULT_TYPE>

Used to mark whether or not a tool (dialog) is capable of exporting the results of a tool to a file.


Nested Class Summary
static class ExportAware.ExportFormat
          The formats the export functionality should at least support.
 
Method Summary
 void exportToFile(File aOutputFile, ExportAware.ExportFormat aFormat)
          Exports the results to a file in the given format.
 RESULT_TYPE getLastResult()
          Returns the result of the last tool invocation.
 

Method Detail

exportToFile

void exportToFile(File aOutputFile,
                  ExportAware.ExportFormat aFormat)
                  throws IOException
Exports the results to a file in the given format.

Parameters:
aOutputFile - the file to write the export results to, cannot be null;
aFormat - the format in which to write the results, cannot be null.
Throws:
IOException - in case of I/O problems exporting the data to file.

getLastResult

RESULT_TYPE getLastResult()
Returns the result of the last tool invocation.

Returns:
a tool result, can be null.


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.