java.lang.Object
com.yuzhyn.azylee.core.ios.files.FileTool
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static boolean复制文件(默认覆盖目标已有文件)static boolean复制文件(覆盖选项自选)static booleanstatic booleanstatic String获取文件扩展名static String获取文件名static Stringstatic String获取文件路径static longstatic booleaninputStreamToFile(InputStream inputStream, String targetFilePath, boolean overwrite) static booleanstatic voidstatic booleanstatic booleanstatic boolean
-
构造器详细资料
-
FileTool
public FileTool()
-
-
方法详细资料
-
isExist
-
create
-
recreate
-
delete
-
copy
复制文件(默认覆盖目标已有文件)- 参数:
source- 参数target- 参数- 返回:
- 返回 返回
-
copy
复制文件(覆盖选项自选)- 参数:
source- 参数target- 参数overwrite- 参数- 返回:
- 返回 返回
-
move
-
rename
-
inputStreamToFile
public static boolean inputStreamToFile(InputStream inputStream, String targetFilePath, boolean overwrite) -
getExt
获取文件扩展名- 参数:
s- 参数- 返回:
- 返回 返回
-
getNameWithoutExt
-
getName
获取文件名- 参数:
s- 参数- 返回:
- 返回 返回
-
getPath
获取文件路径- 参数:
s- 参数- 返回:
- 返回 返回
-
getSize
-
main
-