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

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