public static class Downloader.Response extends Object
| Constructor and Description |
|---|
Downloader.Response(android.graphics.Bitmap bitmap,
boolean loadedFromCache)
Deprecated.
Use
RequestHandler for directly loading Bitmap instances. |
Downloader.Response(android.graphics.Bitmap bitmap,
boolean loadedFromCache,
long contentLength)
Deprecated.
The
contentLength argument value is ignored. Use #Response(Bitmap,
boolean). |
Downloader.Response(InputStream stream,
boolean loadedFromCache)
Deprecated.
Use
Response#Response(java.io.InputStream, boolean, long) instead. |
Downloader.Response(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.
|
InputStream |
getInputStream()
Input stream containing image data.
|
@Deprecated public Downloader.Response(android.graphics.Bitmap bitmap, boolean loadedFromCache)
bitmap - Image.loadedFromCache - true if the source of the image is from a local disk cache.@Deprecated public Downloader.Response(InputStream stream, boolean loadedFromCache)
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 Downloader.Response(android.graphics.Bitmap bitmap, boolean loadedFromCache, long contentLength)
contentLength argument value is ignored. Use #Response(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 Downloader.Response(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 InputStream getInputStream()
If this returns null, image data will be available via getBitmap().
@Deprecated public android.graphics.Bitmap getBitmap()
If this returns null, image data will be available via getInputStream().
public long getContentLength()
getInputStream().Copyright © 2013–2016 Square, Inc.. All rights reserved.