uk.co.mruoc.file.line.LineLoader 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.line;
import java.util.Collection;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class LineLoader {
public static Collection loadLinesFromFileSystem(String path) {
final FileLineLoader loader = new FileSystemFileLineLoader();
return loader.loadLines(path);
}
public static Collection loadLinesFromClasspath(String path) {
final FileLineLoader loader = new ClasspathFileLineLoader();
return loader.loadLines(path);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy