server.install.OutputEater Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-install Show documentation
Show all versions of server-install Show documentation
Framework for delivering desktop application updates
The newest version!
package server.install;
import java.io.IOException;
import java.io.InputStream;
public final class OutputEater implements Runnable {
private final InputStream in;
public OutputEater(InputStream in) {
this.in = in;
}
public void run() {
while (true) {
try {
int c = in.read();
if (c < 0)
break;
} catch (IOException ex) {
// ignore
}
}
}
}