|
||||||||||
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. |
void |
release()
Release any held resources. |
boolean |
supportsTransfer()
Return true if FileChannel.transferTo can be used. |
Methods inherited from interface rabbit.httpio.Transferable |
---|
length, transferTo |
Method Detail |
---|
boolean supportsTransfer()
void addBlockListener(BlockListener bl)
void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |