Mp3dings 
20100427

de.mospace.lang
Class ProcessRunnable.FileOutput

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

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

Wraps a file as a ProcessRunnable.Output.


Constructor Summary
ProcessRunnable.FileOutput(File f)
          Creates a new ProcessRunnable.Output object from the specified file.
 
Method Summary
 void closeOutputStream(OutputStream out)
          Closes the specified stream.
 OutputStream openOutputStream()
          Opens the file specified in the constructor for writing.
 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.FileOutput

public ProcessRunnable.FileOutput(File f)
Creates a new ProcessRunnable.Output object from the specified file.

Method Detail

openOutputStream

public OutputStream openOutputStream()
                              throws IOException
Opens the file specified in the constructor for writing.

Specified by:
openOutputStream in interface ProcessRunnable.Output
Returns:
a new FileOutputStream object
Throws:
IOException

closeOutputStream

public void closeOutputStream(OutputStream out)
                       throws IOException
Closes the specified stream.

Specified by:
closeOutputStream in interface ProcessRunnable.Output
Parameters:
out - an output stream obtained from a previous call to openOutputStream().
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