public static class Downloader.Response extends 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(Bitmap,
boolean) . |
Response(InputStream stream,
boolean loadedFromCache)
Deprecated.
Use
Response#Response(java.io.InputStream, boolean, long) instead. |
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 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(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 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 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()
RequestHandler
for directly loading Bitmap
instances.
If this returns null
, image data will be available via getInputStream()
.
public long getContentLength()
getInputStream()
.Copyright © 2013-2015 Square, Inc.. All Rights Reserved.