Class AbstractInputStreamRunnable

java.lang.Object
org.csstudio.swt.widgets.util.AbstractInputStreamRunnable
All Implemented Interfaces:
Runnable

public abstract class AbstractInputStreamRunnable extends Object implements Runnable
A runnable that able to inject inputstream to the task, so the method setInputStream(InputStream) must be called before scheduling this task. Subclass should only implement runWithInputStream(InputStream).
  • Constructor Details

    • AbstractInputStreamRunnable

      public AbstractInputStreamRunnable()
  • Method Details

    • setInputStream

      public void setInputStream(InputStream inputStream)
    • runWithInputStream

      public abstract void runWithInputStream(InputStream inputStream)
      The task to be executed.
      Parameters:
      inputStream - the injected inputstream.
    • run

      public void run()
      Specified by:
      run in interface Runnable