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

com.panosen.localconfig.LocalConfig Maven / Gradle / Ivy

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