Package org.eclipse.jgit.util
Class FS.StreamGobbler
- java.lang.Object
-
- org.eclipse.jgit.util.FS.StreamGobbler
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- FS
private static class FS.StreamGobbler extends java.lang.Object implements java.lang.Runnable
This runnable will consume an input stream's content into an output stream as soon as it gets available.Typically used to empty processes' standard output and error, preventing them to choke.
Note that a
FS.StreamGobbler
will never close either of its streams.
-
-
Constructor Summary
Constructors Constructor Description StreamGobbler(java.io.InputStream stream, java.io.OutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
copy()
void
run()
-