java.io.SerializableFileResource, HeapResourcepublic interface Resource
extends java.io.Serializable
| Modifier and Type | Method | Description |
|---|---|---|
void |
dispose() |
Indicates the system no longer needs to keep this
response body and any system resources associated with
it may be reclaimed.
|
java.io.InputStream |
getInputStream() |
Returns an
InputStream from which the response
body can be read. |
long |
length() |
Returns the length in bytes of the response body.
|
java.io.InputStream getInputStream()
throws java.io.IOException
InputStream from which the response
body can be read.java.io.IOExceptionlong length()
void dispose()