public class ResourcesFactory extends Object
| 构造器和说明 |
|---|
ResourcesFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
getResourcesFile(String resource)
获取包内文件
|
String |
getResourcesFileStr(String filePath)
获取包内文件
|
Properties |
getResourcesPropertiesFile(String filePath)
获取包内配置文件
|
public Properties getResourcesPropertiesFile(String filePath) throws IOException
filePath - 文件地址 最好已/开头否则容易找不到IOException - 异常public InputStream getResourcesFile(String resource)
resource - 文件地址 最好已/开头否则容易找不到public String getResourcesFileStr(String filePath) throws IOException
filePath - 文件地址 最好已/开头否则容易找不到IOException - 异常Copyright © 2024. All rights reserved.