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

uk.co.mruoc.file.FileReaderLoader Maven / Gradle / Ivy

Go to download

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

The newest version!
package uk.co.mruoc.file;

import java.io.BufferedReader;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class FileReaderLoader {

    public static BufferedReader loadReaderFromFileSystem(String path) {
        BufferedReaderLoader loader = new FileSystemBufferedReaderLoader();
        return loader.load(path);
    }

    public static BufferedReader loadReaderFromClasspath(String path) {
        BufferedReaderLoader loader = new ClasspathBufferedReaderLoader();
        return loader.load(path);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy