net.sourceforge.rssowl.controller.thread
Class StreamGobbler

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sourceforge.rssowl.controller.thread.StreamGobbler
All Implemented Interfaces:
Runnable

public class StreamGobbler
extends Thread

The StreamGobbler class is used to handle input and error streams of the created process.

It was first printed by JavaWorld (www.javaworld.com) in "When Runtime.exec() won't", December 2000 (http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html)

Version:
1.1.3
Author:
Taken from Java Pitfalls (www.javaworld.com)

Field Summary
(package private)  InputStream is
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamGobbler(InputStream is)
          Instantiate a new StreamGobbler
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

is

InputStream is
Constructor Detail

StreamGobbler

public StreamGobbler(InputStream is)
Instantiate a new StreamGobbler

Parameters:
is - The inputstream of the process
Method Detail

run

public void run()
See Also:
Runnable.run()


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo