com.panosen.localconfig.LocalConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panosen-local-config Show documentation
Show all versions of panosen-local-config Show documentation
Panosen local config from resources
The newest version!
package com.panosen.localconfig;
import java.io.IOException;
import java.io.InputStream;
public abstract class LocalConfig {
protected final String fileName;
public LocalConfig(String fileName) {
this.fileName = fileName;
}
protected InputStream getInputStream() throws IOException {
String newFileName = fileName.startsWith("/") ? fileName : "/" + fileName;
return this.getClass().getResourceAsStream(newFileName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy