net.dpml.station.server
Class OutputStreamReader

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.dpml.station.server.StreamReader
          extended bynet.dpml.station.server.OutputStreamReader
All Implemented Interfaces:
Runnable

public class OutputStreamReader
extends net.dpml.station.server.StreamReader

Stream reader utility class.

Version:
1.0.1
Author:
Digital Product Meta Library

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
OutputStreamReader(Logger logger, InputStream input)
          Creation of a process output reader.
 
Method Summary
protected  InputStream getInputStream()
          Return the input stream.
protected  Logger getLogger()
          Return the assigned logging channel.
 void run()
          Start the stream reader.
 
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
 

Constructor Detail

OutputStreamReader

public OutputStreamReader(Logger logger,
                          InputStream input)
Creation of a process output reader.

Parameters:
logger - the assigned logging channel
input - the subprocess input stream
Method Detail

run

public void run()
Start the stream reader.


getInputStream

protected InputStream getInputStream()
Return the input stream.

Returns:
the subprocess input stream

getLogger

protected Logger getLogger()
Return the assigned logging channel.

Returns:
the logging channel