diff options
Diffstat (limited to 'rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/internal/StreamReaderThread.java')
-rw-r--r-- | rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/internal/StreamReaderThread.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/internal/StreamReaderThread.java b/rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/internal/StreamReaderThread.java deleted file mode 100644 index 147e749756..0000000000 --- a/rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/internal/StreamReaderThread.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * (c) 2005 Red Hat, Inc. - * - * This program is open source software licensed under the - * Eclipse Public License ver. 1 - */ -package org.eclipse.linuxtools.rpm.core.utils.internal; - -import java.io.InputStreamReader; -import java.io.InputStream; - -/** - * Thread for reading input and output streams - */ -public class StreamReaderThread extends Thread -{ - StringBuffer mOut; - InputStreamReader mIn; - - public StreamReaderThread(InputStream in, StringBuffer out) - { - mOut=out; - mIn=new InputStreamReader(in); - } - - public void run() - { - int ch; - try { - while(-1 != (ch=mIn.read())) - mOut.append((char)ch); - } - catch (Exception e) - { - mOut.append("\nRead error:"+e.getMessage()); - } - } -} |