uk.co.mruoc.file.FileReaderLoader 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
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