# KitStorageUtils

public class KitStorageUtils

Created by Android Studio. User: lvhongzhen Date: 2019-11-28 Time: 11:43

## Constructors

KitStorageUtils
Link copied to clipboard
public void KitStorageUtils()

## Types

MediaType
Link copied to clipboard
public class MediaType

## Functions

copy
Link copied to clipboard
public static void copy(FileInputStream ist, FileOutputStream ost)
getContentUri
Link copied to clipboard
public Uri getContentUri(int type, String id)
getFileInputStreamWithUri
Link copied to clipboard
public InputStream getFileInputStreamWithUri(Context pContext, Uri pUri)
getFileSavePath
Link copied to clipboard
public static String getFileSavePath(Context context)
getImageSavePath
Link copied to clipboard
public static String getImageSavePath(Context context)
getImgMimeType
Link copied to clipboard
public static String getImgMimeType(File imgFile)
getSavePath
Link copied to clipboard
public static String getSavePath(Context context, String type, int res)
getVideoSavePath
Link copied to clipboard
public static String getVideoSavePath(Context context)
insertImageIntoMediaStore
Link copied to clipboard
public static Uri insertImageIntoMediaStore(Context context, String fileName, String mimeType)
insertVideoIntoMediaStore
Link copied to clipboard
public static Uri insertVideoIntoMediaStore(Context context, String fileName)
isBuildAndTargetForQ
Link copied to clipboard
public static boolean isBuildAndTargetForQ(Context context)
isScopedStorageMode
Link copied to clipboard
public static boolean isScopedStorageMode(Context context)
read
Link copied to clipboard
public static void read(ParcelFileDescriptor parcelFileDescriptor, File dst)
saveMediaToPublicDir
Link copied to clipboard
public static boolean saveMediaToPublicDir(Context context, File file, String type)
public static boolean saveMediaToPublicDir(Context context, File file, String outputFileName, String type)
updatePhotoMedia
Link copied to clipboard
public static void updatePhotoMedia(File file, Context context)
writeToPublicDir
Link copied to clipboard
public static void writeToPublicDir(File pFile, ParcelFileDescriptor pParcelFileDescriptor)