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 Summary
Constructors Constructor Description FilePathOutputStreamProvider(String filePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
getOutputStream(org.eclipse.swt.widgets.Shell shell)
Object
getResult()
-
-
-
Constructor Detail
-
FilePathOutputStreamProvider
public FilePathOutputStreamProvider(String filePath)
-
-
Method Detail
-
getResult
public Object getResult()
- Specified by:
getResult
in interfaceIOutputStreamProvider
- 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 interfaceIOutputStreamProvider
- 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.
-
-