public static class Downloader.Response
extends java.lang.Object
| Constructor and Description |
|---|
Response(android.graphics.Bitmap bitmap,
boolean loadedFromCache)
Deprecated.
Use
RequestHandler for directly loading Bitmap instances. |
Response(android.graphics.Bitmap bitmap,
boolean loadedFromCache,
long contentLength)
Deprecated.
The
contentLength argument value is ignored. Use #Response(android.graphics.Bitmap,
boolean). |
Response(java.io.InputStream stream,
boolean loadedFromCache)
Deprecated.
Use
com.squareup.picasso.Downloader.Response#Response(java.io.InputStream, boolean, long) instead. |
Response(java.io.InputStream stream,
boolean loadedFromCache,
long contentLength)
Response stream and info.
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
getBitmap()
Deprecated.
Use
RequestHandler for directly loading Bitmap instances. |
long |
getContentLength()
Content length of the response.
|
java.io.InputStream |
getInputStream()
Input stream containing image data.
|
@Deprecated
public Response(android.graphics.Bitmap bitmap,
boolean loadedFromCache)
RequestHandler for directly loading Bitmap instances.bitmap - Image.loadedFromCache - true if the source of the image is from a local disk cache.@Deprecated
public Response(java.io.InputStream stream,
boolean loadedFromCache)
com.squareup.picasso.Downloader.Response#Response(java.io.InputStream, boolean, long) instead.stream - Image data stream.loadedFromCache - true if the source of the stream is from a local disk cache.@Deprecated
public Response(android.graphics.Bitmap bitmap,
boolean loadedFromCache,
long contentLength)
contentLength argument value is ignored. Use #Response(android.graphics.Bitmap,
boolean).bitmap - Image.loadedFromCache - true if the source of the image is from a local disk cache.contentLength - The content length of the response, typically derived by the
Content-Length HTTP header.public Response(java.io.InputStream stream,
boolean loadedFromCache,
long contentLength)
stream - Image data stream.loadedFromCache - true if the source of the stream is from a local disk cache.contentLength - The content length of the response, typically derived by the
Content-Length HTTP header.public java.io.InputStream getInputStream()
If this returns null, image data will be available via getBitmap().
@Deprecated public android.graphics.Bitmap getBitmap()
RequestHandler for directly loading Bitmap instances.
If this returns null, image data will be available via getInputStream().
public long getContentLength()
getInputStream().