net.sourceforge.taverna.scuflworkers.ncbi
Class FileStreamProcessor

java.lang.Object
  extended by net.sourceforge.taverna.scuflworkers.ncbi.FileStreamProcessor
All Implemented Interfaces:
StreamProcessor

public class FileStreamProcessor
extends java.lang.Object
implements StreamProcessor

This class takes an input stream and writes the contents to a file.

Version:
$Revision: 1.2 $
Author:
Mark

Constructor Summary
FileStreamProcessor(java.io.File file)
          Constructor
FileStreamProcessor(java.io.File file, int bufferSize)
          Constructor
FileStreamProcessor(java.lang.String filename)
          Constructor
 
Method Summary
 java.util.Map processStream(java.io.InputStream stream)
          This method processes an input stream and outputs the result to a file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStreamProcessor

public FileStreamProcessor(java.lang.String filename)
Constructor

Parameters:
filename -

FileStreamProcessor

public FileStreamProcessor(java.io.File file)
Constructor

Parameters:
file - The output file

FileStreamProcessor

public FileStreamProcessor(java.io.File file,
                           int bufferSize)
Constructor

Parameters:
file - The output file.
bufferSize - The buffer size used when reading/writing files.
Method Detail

processStream

public java.util.Map processStream(java.io.InputStream stream)
                            throws java.io.IOException
This method processes an input stream and outputs the result to a file. Note that no Map is actually returned.

Specified by:
processStream in interface StreamProcessor
Throws:
java.io.IOException