public class ClassPathResource extends Object
| 构造器和说明 |
|---|
ClassPathResource() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getPath()
获取ClassPath根目录
|
String |
getPath(String filename)
获取ClassPath文件路径
|
InputStream |
read(String classPath)
不存在返回Null
|
byte[] |
readByte(String classPath)
不存在返回Null
|
String |
readString(String classPath)
不存在返回Null
|
String |
readString(String classPath,
Charset charset)
不存在返回Null
|
Copyright © 2019. All rights reserved.