public enum EncodeStrategy extends Enum<EncodeStrategy>
ResourceEncoder
will encode a resource to cache.枚举常量和说明 |
---|
NONE
Will write no data.
|
SOURCE
Writes the original unmodified data for the resource to disk, not include downsampling or
transformations.
|
TRANSFORMED
Writes the decoded, downsampled and transformed data for the resource to disk.
|
public static final EncodeStrategy SOURCE
public static final EncodeStrategy TRANSFORMED
public static final EncodeStrategy NONE
public static EncodeStrategy[] values()
for (EncodeStrategy c : EncodeStrategy.values()) System.out.println(c);
public static EncodeStrategy valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值