public class FileHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String[] |
tail(String pathToFile,
int lines)
Adapted code from http://stackoverflow.com/a/7322581/1165132
Inspired by http://forums.sun.com/thread.jspa?threadID=572557 |
static File |
validateDir(File dir)
Validates that the resolved directory exists and is a directory.
|
public static String[] tail(String pathToFile, int lines)
pathToFile - Path to the file.lines - Number of lines to read,public static File validateDir(File dir) throws FileNotFoundException
dir - the directory to validateFileNotFoundException - if the validation failedCopyright © 2019 Communote team. All rights reserved.