public abstract class

CloseableImage

extends Object
implements HasImageMetadata ImageInfo Closeable
java.lang.Object
   ↳ com.facebook.imagepipeline.image.CloseableImage
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A simple wrapper around an image that implements Closeable

Summary

Public Constructors
CloseableImage()
Public Methods
abstract void close()
Closes this instance and releases the resources.
Map<String, Object> getExtras()
QualityInfo getQualityInfo()
Returns quality information for the image.
abstract int getSizeInBytes()
abstract boolean isClosed()
Returns whether this instance is closed.
boolean isStateful()
Whether or not this image contains state for a particular view of the image (for example, the image for an animated GIF might contain the current frame being viewed).
void setImageExtras(Map<String, Object> extras)
Sets extras that match mImageExtrasList to this image from supplied extras
Protected Methods
void finalize()
Ensures that the underlying resources are always properly released.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.image.HasImageMetadata
From interface com.facebook.imagepipeline.image.ImageInfo
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public Constructors

public CloseableImage ()

Public Methods

public abstract void close ()

Closes this instance and releases the resources.

public Map<String, Object> getExtras ()

public QualityInfo getQualityInfo ()

Returns quality information for the image.

Image classes that can contain intermediate results should override this as appropriate.

public abstract int getSizeInBytes ()

Returns
  • size in bytes of the bitmap(s)

public abstract boolean isClosed ()

Returns whether this instance is closed.

public boolean isStateful ()

Whether or not this image contains state for a particular view of the image (for example, the image for an animated GIF might contain the current frame being viewed). This means that the image should not be stored in the bitmap cache.

public void setImageExtras (Map<String, Object> extras)

Sets extras that match mImageExtrasList to this image from supplied extras

Protected Methods

protected void finalize ()

Ensures that the underlying resources are always properly released.

Throws
Throwable