public class ResourcesLoadKit extends Object
| 构造器和说明 |
|---|
ResourcesLoadKit() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
loadResourcesFromJarByFolder(String folderPath,
String targetFolderPath)
从jar包下加载文件夹资源
|
static InputStream |
loadResourcesInputStream(String path)
加载资源输入流
|
public static void loadResourcesFromJarByFolder(String folderPath, String targetFolderPath) throws IOException
folderPath - 文件夹targetFolderPath - 目标文件夹IOException - 文件拷贝错误时抛出异常public static InputStream loadResourcesInputStream(String path) throws IOException
path - 资源地址IOException - 文件异常Copyright © 2019. All rights reserved.