org.alliance.core.comm.filetransfers
Class CompleteFileBlockProvider

java.lang.Object
  extended by org.alliance.core.comm.filetransfers.BlockProvider
      extended by org.alliance.core.comm.filetransfers.CompleteFileBlockProvider
All Implemented Interfaces:
DataProvider

public class CompleteFileBlockProvider
extends BlockProvider

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


Field Summary
protected  java.nio.channels.FileChannel fileChannel
           
 
Fields inherited from class org.alliance.core.comm.filetransfers.BlockProvider
blockNumber, core, fd, read, root
 
Constructor Summary
CompleteFileBlockProvider(int blockNumber, Hash root, CoreSubsystem core)
           
 
Method Summary
 int fill(java.nio.ByteBuffer buf)
           
 void updateRead(int read)
           
 
Methods inherited from class org.alliance.core.comm.filetransfers.BlockProvider
prepare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileChannel

protected java.nio.channels.FileChannel fileChannel
Constructor Detail

CompleteFileBlockProvider

public CompleteFileBlockProvider(int blockNumber,
                                 Hash root,
                                 CoreSubsystem core)
                          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

fill

public int fill(java.nio.ByteBuffer buf)
         throws java.io.IOException
Throws:
java.io.IOException

updateRead

public void updateRead(int read)
                throws java.io.IOException
Throws:
java.io.IOException