`
xubindehao
  • 浏览: 239327 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

文件,流

 
阅读更多

    public String getFullFileName(String path, String fileprex) throws IllegalArgumentException, IOException {
        StringBuilder sb = new StringBuilder();
        if (!path.endsWith(File.separator)) {
            path = path + File.separator;
        }
        ResourceLoader loader = new DefaultResourceLoader();
        sb.append(path).append(fileprex);
        sb.append(DATATYPE);
        Resource res=loader.getResource(sb.toString());
        return new File(res.getURI()).getPath();
    }

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics