|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReplicationContent
This interface describes the assembled content to replicate.
| Method Summary | |
|---|---|
void |
destroy()
Destroy the cached content. |
void |
dispose(String agentName)
Decrement the usage counter and destroy the cached content if noone else is using the content. |
long |
getContentLength()
Return the content length if known |
String |
getContentType()
Get the content type |
InputStream |
getInputStream()
Get the input stream for the content. |
boolean |
hasDisposed(String agentName)
Has the agent already disposed this content? |
void |
use()
Increment the usage counter. |
| Method Detail |
|---|
InputStream getInputStream()
throws IOException
IOException - if an I/O error occurrsString getContentType()
void dispose(String agentName)
agentName - The name of the agent.void use()
boolean hasDisposed(String agentName)
agentName - The name of the agent.
long getContentLength()
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||