Package com.bumptech.glide.load
Enum EncodeStrategy
- java.lang.Object
-
- java.lang.Enum<EncodeStrategy>
-
- com.bumptech.glide.load.EncodeStrategy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EncodeStrategy>
public enum EncodeStrategy extends java.lang.Enum<EncodeStrategy>
Details how anResourceEncoderwill encode a resource to cache.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONEWill write no data.SOURCEWrites the original unmodified data for the resource to disk, not include downsampling or transformations.TRANSFORMEDWrites the decoded, downsampled and transformed data for the resource to disk.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncodeStrategyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EncodeStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOURCE
public static final EncodeStrategy SOURCE
Writes the original unmodified data for the resource to disk, not include downsampling or transformations.
-
TRANSFORMED
public static final EncodeStrategy TRANSFORMED
Writes the decoded, downsampled and transformed data for the resource to disk.
-
NONE
public static final EncodeStrategy NONE
Will write no data.
-
-
Method Detail
-
values
public static EncodeStrategy[] 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 (EncodeStrategy c : EncodeStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncodeStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-