Mp3dings 
20100427

de.mospace.lang
Class ProcessRunnable.StreamOutput

java.lang.Object
  extended by de.mospace.lang.ProcessRunnable.StreamOutput
All Implemented Interfaces:
ProcessRunnable.Output
Enclosing class:
ProcessRunnable

protected static class ProcessRunnable.StreamOutput
extends Object
implements ProcessRunnable.Output

Wraps an input stream as a ProcessRunnable.Input.


Constructor Summary
ProcessRunnable.StreamOutput(OutputStream o)
          Creates a new ProcessRunnable.Output object from the specified stream.
 
Method Summary
 void closeOutputStream(OutputStream out)
          Does nothing
 OutputStream openOutputStream()
          Returns the output stream for this StreamOutput.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessRunnable.StreamOutput

public ProcessRunnable.StreamOutput(OutputStream o)
Creates a new ProcessRunnable.Output object from the specified stream.

Parameters:
o - an OutputStream or null for a NullStream.
Method Detail

openOutputStream

public OutputStream openOutputStream()
Returns the output stream for this StreamOutput.

Specified by:
openOutputStream in interface ProcessRunnable.Output
Returns:
a non-null output stream

closeOutputStream

public void closeOutputStream(OutputStream out)
Does nothing

Specified by:
closeOutputStream in interface ProcessRunnable.Output
Parameters:
out - an output stream obtained from a previous call to ProcessRunnable.Output.openOutputStream().

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Object
Returns:
a string representation of this object.

Mp3dings 
20100427