All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.common.propenv.AbsolutePathEnvStream Maven / Gradle / Ivy

There is a newer version: 1.8.5
Show newest version
package top.jfunc.common.propenv;

import top.jfunc.common.utils.FileUtil;
import top.jfunc.common.utils.IoUtil;

import java.io.InputStream;

/**
 * 绝对路径下
 * 可以给定某个目录下寻找
 * @author 熊诗言
 */
public class AbsolutePathEnvStream extends BaseEnvStream {
    private String dir;

    public AbsolutePathEnvStream(String dir){
        this.dir = dir;
    }

    @Override
    protected InputStream loadInputStream(String fileName) {
        return IoUtil.getFileInputStream(FileUtil.concat(dir, fileName));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy