Mp3dings 
20100427

de.mospace.lang
Class ProcessRunnable.StreamInput

java.lang.Object
  extended by de.mospace.lang.ProcessRunnable.StreamInput
All Implemented Interfaces:
ProcessRunnable.Input
Enclosing class:
ProcessRunnable

protected static final class ProcessRunnable.StreamInput
extends Object
implements ProcessRunnable.Input

Wraps an input stream as a ProcessRunnable.Input.


Constructor Summary
ProcessRunnable.StreamInput(InputStream stream)
          Creates a new ProcessRunnable.Input object from the specified stream.
 
Method Summary
 void closeInputStream(InputStream stream)
          Does nothing.
 InputStream openInputStream()
          Returns the input stream specified in the constructor.
 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.StreamInput

public ProcessRunnable.StreamInput(InputStream stream)
Creates a new ProcessRunnable.Input object from the specified stream.

Parameters:
stream - an InputStream or null for empty input.
Method Detail

openInputStream

public InputStream openInputStream()
Returns the input stream specified in the constructor. Clients should handle null gracefully treating it as empty input.

Specified by:
openInputStream in interface ProcessRunnable.Input
Returns:
an input stream or null

closeInputStream

public void closeInputStream(InputStream stream)
Does nothing.

Specified by:
closeInputStream in interface ProcessRunnable.Input
Parameters:
stream - an input stream obtained from a previous call to ProcessRunnable.Input.openInputStream().

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