|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.httpcache4j.payload.InputStreamPayload
public class InputStreamPayload
| Constructor Summary | |
|---|---|
InputStreamPayload(java.io.InputStream stream,
MIMEType mimeType)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
Returns the input stream of the payload. |
MIMEType |
getMimeType()
Return the mime-type of the payload. |
boolean |
isAvailable()
Returns true if the payload is available, IE. |
boolean |
isTransient()
Returns the transientness of the payload. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamPayload(java.io.InputStream stream,
MIMEType mimeType)
| Method Detail |
|---|
public MIMEType getMimeType()
Payload
getMimeType in interface Payloadpublic boolean isAvailable()
Payloadtrue if the payload is available, IE. If the stream can be read from.
isAvailable in interface Payloadtrue if the payload is available. false if not.public boolean isTransient()
Payload
isTransient in interface Payloadtrue if the payload can be re-read. false if not.public java.io.InputStream getInputStream()
Payload
getInputStream in interface Payloadnull if the payload is not available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||