Class StreamGobbler

java.lang.Object
com.compomics.util.io.StreamGobbler
All Implemented Interfaces:
Runnable

public class StreamGobbler extends Object implements Runnable
A stream gobbler.
Author:
Davy Maddelein
  • Constructor Details

    • StreamGobbler

      public StreamGobbler()
      Empty default constructor
    • StreamGobbler

      public StreamGobbler(InputStream is)
      Constructor.
      Parameters:
      is - the input stream
  • Method Details

    • run

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

      public String getMessages()
      Returns the messages.
      Returns:
      the messages
    • setContinueReading

      public void setContinueReading(boolean continueReading)
      Set if the reading is to continue or not.
      Parameters:
      continueReading - if the reading is to continue or not