uk.co.mruoc.properties.FakeInputStreamLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of file-loader Show documentation
Show all versions of file-loader Show documentation
Code library to easily load files and file from the classpath or file system file
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