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

uk.co.mruoc.properties.FakeInputStreamLoader Maven / Gradle / Ivy

Go to download

Code library to easily load files and file from the classpath or file system file

There is a newer version: 7.0.4
Show newest version
package uk.co.mruoc.properties;

import java.io.InputStream;

public class FakeInputStreamLoader implements InputStreamLoader {

    private String path;
    private InputStream inputStream;

    @Override
    public InputStream load(String path) {
        this.path = path;
        return inputStream;
    }

    public void setInputStream(InputStream inputStream) {
        this.inputStream = inputStream;
    }

    public String getLastLoadedPath() {
        return path;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy