Package com.compomics.util.io
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 Summary
Constructors Constructor Description StreamGobbler()
Empty default constructorStreamGobbler(InputStream is)
Constructor. -
Method Summary
Modifier and Type Method Description String
getMessages()
Returns the messages.void
run()
void
setContinueReading(boolean continueReading)
Set if the reading is to continue or not.
-
Constructor Details
-
StreamGobbler
public StreamGobbler()Empty default constructor -
StreamGobbler
Constructor.- Parameters:
is
- the input stream
-
-
Method Details
-
run
public void run() -
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
-