View Javadoc

1   /*
2    * Created on Apr 14, 2004
3    *
4    */
5   package org.neo.swarm.util.io;
6   
7   import java.io.IOException;
8   import java.nio.ByteBuffer;
9   
10  /***
11   * Contract for Instream providers that expose a ByteBuffer for read data.
12   *  @author navery
13   */
14  public interface StreamCallback {
15  	public int execute(ByteBuffer buffer, int availableBytes) throws IOException;
16  	public void close();
17  }