# FileUtils

public class FileUtils

#### Author

Peli

paulburke (ipaulpro)

## Functions

copyFile
Link copied to clipboard
public static boolean copyFile(FileInputStream fileInputStream, String outFilePath)
Copies one file into the other with the given paths.
extSuffix
Link copied to clipboard
public static String extSuffix(InputStream input)
getCreateFileName
Link copied to clipboard
public static String getCreateFileName(String prefix)
根据时间戳创建文件名
getDataColumn
Link copied to clipboard
public static String getDataColumn(Context context, Uri uri, String selection, Array<String> selectionArgs)
Get the value of the data column for this Uri.
getPath
Link copied to clipboard
public static String getPath(Context context, Uri uri)
Get a file path from a Uri.
isDownloadsDocument
Link copied to clipboard
public static boolean isDownloadsDocument(Uri uri)
isExternalStorageDocument
Link copied to clipboard
public static boolean isExternalStorageDocument(Uri uri)
isGif
Link copied to clipboard
public static boolean isGif(String mimeType)
是否是gif
isGifForSuffix
Link copied to clipboard
public static boolean isGifForSuffix(String suffix)
isGooglePhotosUri
Link copied to clipboard
public static boolean isGooglePhotosUri(Uri uri)
isHttp
Link copied to clipboard
public static boolean isHttp(String path)
是否是网络图片
isMediaDocument
Link copied to clipboard
public static boolean isMediaDocument(Uri uri)