public final class FileUtils extends Object
| 构造器和说明 |
|---|
FileUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ClassLoader |
getContextClassLoader() |
static String |
getFileExt(File file) |
static String |
getFileExt(InputStream stream) |
static String |
getFileName(InputStream file) |
static InputStream |
getResourceAsStream(String resource) |
static String |
randomFileName(int len,
String fileExt) |
static File |
saveFile(YosDownloadResponse yosDownloadResponse)
保存文件到本地
|
public static String getFileName(InputStream file)
public static String getFileExt(InputStream stream)
public static InputStream getResourceAsStream(String resource)
public static ClassLoader getContextClassLoader()
public static File saveFile(YosDownloadResponse yosDownloadResponse)
yosDownloadResponse - 接口返回Copyright © 2024. All rights reserved.