# PictureMimeType

public final class PictureMimeType

## Constructors

PictureMimeType
Link copied to clipboard
public void PictureMimeType()

## Properties

DCIM
Link copied to clipboard
public final static String DCIM
JPEG
Link copied to clipboard
public final static String JPEG
MIME_TYPE_IMAGE
Link copied to clipboard
public final static String MIME_TYPE_IMAGE
MIME_TYPE_PREFIX_IMAGE
Link copied to clipboard
public final static String MIME_TYPE_PREFIX_IMAGE
MIME_TYPE_PREFIX_VIDEO
Link copied to clipboard
public final static String MIME_TYPE_PREFIX_VIDEO
MIME_TYPE_VIDEO
Link copied to clipboard
public final static String MIME_TYPE_VIDEO
PNG
Link copied to clipboard
public final static String PNG

## Functions

eqImage
Link copied to clipboard
public static boolean eqImage(String mimeType)
是否是图片
eqVideo
Link copied to clipboard
public static boolean eqVideo(String mimeType)
是否是视频
fileToType
Link copied to clipboard
public static String fileToType(File file)
判断文件类型是图片还是视频
getImageMimeType
Link copied to clipboard
public static String getImageMimeType(String path)
getLastImgSuffix
Link copied to clipboard
public static String getLastImgSuffix(String mineType)
获取图片后缀
getLastImgType
Link copied to clipboard
public static String getLastImgType(String path)
获取图片后缀
getMimeType
Link copied to clipboard
public static int getMimeType(String mimeType)
Picture or video
public static String getMimeType(Context context, Uri uri)
根据uri获取MIME_TYPE
isGif
Link copied to clipboard
public static boolean isGif(String mimeType)
是否是gif
isHttp
Link copied to clipboard
public static boolean isHttp(String path)
是否是网络图片
isMimeTypeSame
Link copied to clipboard
public static boolean isMimeTypeSame(String oldMimeType, String newMimeType)
是否是同一类型
isPictureType
Link copied to clipboard
@Deprecated()
public static int isPictureType(String pictureType)
isVideo
Link copied to clipboard
@Deprecated()
public static boolean isVideo(String pictureType)
是否是视频
mimeToEqual
Link copied to clipboard
@Deprecated()
public static boolean mimeToEqual(String p1, String p2)
is type Equal
of3GP
Link copied to clipboard
public final static String of3GP()
ofAll
Link copied to clipboard
public final static int ofAll()
ofAVI
Link copied to clipboard
public final static String ofAVI()
ofBMP
Link copied to clipboard
public final static String ofBMP()
ofGIF
Link copied to clipboard
public final static String ofGIF()
ofImage
Link copied to clipboard
public final static int ofImage()
ofJPEG
Link copied to clipboard
public final static String ofJPEG()
ofMP4
Link copied to clipboard
public final static String ofMP4()
ofMPEG
Link copied to clipboard
public final static String ofMPEG()
ofPNG
Link copied to clipboard
public final static String ofPNG()
ofVideo
Link copied to clipboard
public final static int ofVideo()
ofWEBP
Link copied to clipboard
public final static String ofWEBP()
s
Link copied to clipboard
public static String s(Context context, String mimeType)
根据不同的类型，返回不同的错误提示