Mp3dings 
20100427

de.mospace.lang
Class ProcessRunnable.FileInput

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

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

Wraps a file as a ProcessRunnable.Input.


Constructor Summary
ProcessRunnable.FileInput(File f)
          Creates a new ProcessRunnable.Input object from the specified file.
 
Method Summary
 void closeInputStream(InputStream stream)
          Closes the specified stream.
 InputStream openInputStream()
          Opens the file specified in the constructor for reading.
 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.FileInput

public ProcessRunnable.FileInput(File f)
Creates a new ProcessRunnable.Input object from the specified file.

Method Detail

openInputStream

public InputStream openInputStream()
                            throws IOException
Opens the file specified in the constructor for reading.

Specified by:
openInputStream in interface ProcessRunnable.Input
Returns:
a new FileInputStream object
Throws:
IOException

closeInputStream

public void closeInputStream(InputStream stream)
                      throws IOException
Closes the specified stream.

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

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