sam.io
Class ParallelIO.GatherInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--sam.io.ParallelIO.GatherInputStream
Enclosing class:
ParallelIO

public class ParallelIO.GatherInputStream
extends java.io.InputStream

Class for gathring buffered writes from multiple threads.

See Also:
ParallelIO.ScatterOutputStream

Constructor Summary
ParallelIO.GatherInputStream(java.io.InputStream delegee)
           
 
Method Summary
 void close()
          Simply forwards the closing call to the underlying stream
 int read()
          Simply reads one byte from the underlying stream
 int read(byte[] data, int begin, int length)
          Scatters reads on multiple threads from the underlying stream
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelIO.GatherInputStream

public ParallelIO.GatherInputStream(java.io.InputStream delegee)
Method Detail

close

public void close()
           throws java.io.IOException
Simply forwards the closing call to the underlying stream

Overrides:
close in class java.io.InputStream
java.io.IOException

read

public int read()
         throws java.io.IOException
Simply reads one byte from the underlying stream

Specified by:
read in class java.io.InputStream
java.io.IOException

read

public int read(byte[] data,
                int begin,
                int length)
         throws java.io.IOException
Scatters reads on multiple threads from the underlying stream

Overrides:
read in class java.io.InputStream
java.io.IOException