com.bumptech.glide.load.resource.bitmap
Enum ImageHeaderParser.ImageType

java.lang.Object
  extended by java.lang.Enum<ImageHeaderParser.ImageType>
      extended by com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType
All Implemented Interfaces:
Serializable, Comparable<ImageHeaderParser.ImageType>
Enclosing class:
ImageHeaderParser

public static enum ImageHeaderParser.ImageType
extends Enum<ImageHeaderParser.ImageType>

The format of the image data including whether or not the image may include transparent pixels.


Enum Constant Summary
GIF
          GIF type.
JPEG
          JPG type.
PNG
          PNG type without alpha.
PNG_A
          PNG type with alpha.
UNKNOWN
          Unrecognized type.
 
Method Summary
 boolean hasAlpha()
           
static ImageHeaderParser.ImageType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImageHeaderParser.ImageType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GIF

public static final ImageHeaderParser.ImageType GIF
GIF type.


JPEG

public static final ImageHeaderParser.ImageType JPEG
JPG type.


PNG_A

public static final ImageHeaderParser.ImageType PNG_A
PNG type with alpha.


PNG

public static final ImageHeaderParser.ImageType PNG
PNG type without alpha.


UNKNOWN

public static final ImageHeaderParser.ImageType UNKNOWN
Unrecognized type.

Method Detail

values

public static ImageHeaderParser.ImageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ImageHeaderParser.ImageType c : ImageHeaderParser.ImageType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ImageHeaderParser.ImageType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

hasAlpha

public boolean hasAlpha()