62,614
社区成员
发帖
与我相关
我的任务
分享
InputStream inputFile = ClassLoader.getSystemResourceAsStream(filePath);
InputStream inputFile = RootPath.class.getResourceAsStream(filePath);
String classPath = this.getClass().getClassLoader().getResource("/").getPath();
try {
classPath =URLDecoder.decode(classPath, "gb2312");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}