uk.org.ogsadai.activity.transform
Class IncrementalProcessorInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--uk.org.ogsadai.activity.transform.IncrementalProcessorInputStream
- public class IncrementalProcessorInputStream
- extends java.io.InputStream
An InputStream designed to read the output of some kind of
process in incremental stages. An IncrementalProcessor is used
to perform this actual processing.
There are many cases where a process writes to an output stream and it is
necessary to retrieve this data produced in stages during the processing,
rather than in a single block when the processing is complete. This class
together with the IncrementalProcessor interface provides a
solution to this problem.
- Author:
- The OGSA-DAI Project Team
|
Method Summary |
int |
read()
|
int |
read(byte[] bytes,
int start,
int length)
|
| Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncrementalProcessorInputStream
public IncrementalProcessorInputStream(IncrementalProcessor processor)
throws java.io.IOException
- Constructs an instance using the specified parameters and the default
internal buffer size.
- Parameters:
processor - The IncrementalProcessor used to perform
the processing. This should be constructed but not
initialised.
- Throws:
java.io.IOException - If there is an I/O problem.
IncrementalProcessorInputStream
public IncrementalProcessorInputStream(IncrementalProcessor processor,
int bufferSize)
throws java.io.IOException
- Constructs an instance using the specified parameters.
- Parameters:
processor - The IncrementalProcessor used to perform
the processing. This should be constructed but not
initialised.bufferSize - The internal buffer size.
- Throws:
java.io.IOException - If there is an I/O problem.
read
public int read()
throws java.io.IOException
- Specified by:
read in class java.io.InputStream
java.io.IOException
read
public int read(byte[] bytes,
int start,
int length)
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
java.io.IOException