org.alliance.core.comm.filetransfers
Class BlockConsumer

java.lang.Object
  extended by org.alliance.core.comm.filetransfers.BlockConsumer
All Implemented Interfaces:
DataConsumer

public class BlockConsumer
extends java.lang.Object
implements DataConsumer

Created by IntelliJ IDEA. User: maciek Date: 2006-jan-26 Time: 21:56:49 To change this template use File | Settings | File Templates.


Constructor Summary
BlockConsumer(DownloadConnection c, int blockNumber, BlockStorage storage)
           
 
Method Summary
 void consume(java.nio.ByteBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockConsumer

public BlockConsumer(DownloadConnection c,
                     int blockNumber,
                     BlockStorage storage)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

consume

public void consume(java.nio.ByteBuffer buf)
             throws java.io.IOException
Specified by:
consume in interface DataConsumer
Throws:
java.io.IOException