org.eodisp.wrapper.util
Class ChunkedOutputStream

java.lang.Object
  extended by org.eodisp.wrapper.util.ChunkedOutputStream

public class ChunkedOutputStream
extends java.lang.Object

An output stream that writes chunks to a stream in the correct order.

Version:
$Id:$
Author:
ibirrer

Constructor Summary
ChunkedOutputStream(java.io.OutputStream out, long chunks)
           
 
Method Summary
 boolean write(byte[] data, long chunkNr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedOutputStream

public ChunkedOutputStream(java.io.OutputStream out,
                           long chunks)
Parameters:
out - the output stream to write the chunks to
chunks - the number of chunks to be expected
Method Detail

write

public boolean write(byte[] data,
                     long chunkNr)
              throws java.io.IOException
Throws:
java.io.IOException