Class FilePathOutputStreamProvider

java.lang.Object
org.eclipse.nebula.widgets.nattable.export.FilePathOutputStreamProvider
All Implemented Interfaces:
IOutputStreamProvider

public class FilePathOutputStreamProvider extends Object implements IOutputStreamProvider
Simple IOutputStreamProvider for a given filepath, no user interaction necessary. Useful for integration of a fileselector anywere in the UI.
Since:
1.5
  • Constructor Details

    • FilePathOutputStreamProvider

      public FilePathOutputStreamProvider(String filePath)
  • Method Details

    • getResult

      public Object getResult()
      Specified by:
      getResult in interface IOutputStreamProvider
      Returns:
      The result that is produced by this IOutputStreamProvider. Usually this is the place where the OutputStream that is produced by this provider is pointing to (e.g. the file to which the OutputStream points to).
    • getOutputStream

      public OutputStream getOutputStream(org.eclipse.swt.widgets.Shell shell)
      Specified by:
      getOutputStream in interface IOutputStreamProvider
      Parameters:
      shell - The current active Shell. Needed to add support for user interactions on specifying the OutputStream for example by opening a dialog.
      Returns:
      The OutputStream to perform write operations to.