blob: 2b44424e338f4f4552f90544b266668a7fbb4296 [file] [log] [blame]
package org.eclipse.help.internal.ui.util;
/*
* Licensed Materials - Property of IBM,
* WebSphere Studio Workbench
* (c) Copyright IBM Corp 2000
*/
import java.io.*;
/**
* Used to destroy output from processes
*/
public class StreamConsumer extends Thread {
InputStream is;
byte[] buf;
public StreamConsumer(InputStream inputStream) {
super();
this.is = inputStream;
buf = new byte[512];
}
public void run() {
try {
int n = 0;
while (n >= 0)
n = is.read(buf);
} catch (IOException ioe) {
}
}
}