|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceSource
A resource source. Use supportsTransfer to check if this resource supports transfer, if it does then use the transferTo method. A resource that does not support transfer will listen for blocks that are read, using a BlockListener.
| Method Summary | |
|---|---|
void |
addBlockListener(BlockListener bl)
Add a ByteBuffer listener. |
long |
length()
Get the length of the resource in bytes. |
void |
release(Connection con)
Release any held resources. |
boolean |
supportsTransfer()
Return true if FileChannel.transferTo can be used. |
| Methods inherited from interface rabbit.proxy.Transferable |
|---|
transferTo |
| Method Detail |
|---|
boolean supportsTransfer()
long length()
length in interface Transferablevoid addBlockListener(BlockListener bl)
void release(Connection con)
con - the Connection handling the resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||