public enum PictureFileType extends Enum<PictureFileType>
| Enum Constant and Description |
|---|
JPEG
依然是一种图片文件格式
|
JPG
另一种图片文件格式
|
PNG
一个图片文件格式
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEffectPictureFileType(String typeName)
判断图片文件类型是否是系统支持的图片类型
|
static PictureFileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PictureFileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PictureFileType PNG
public static final PictureFileType JPG
public static final PictureFileType JPEG
public static PictureFileType[] values()
for (PictureFileType c : PictureFileType.values()) System.out.println(c);
public static PictureFileType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static boolean isEffectPictureFileType(String typeName)
typeName - 文件后缀名Copyright © 2022. All rights reserved.