@Test(expected = NullPointerException.class) public void checkOnNullFile() throws Exception { checkFile(null); }
public static Path checkFile(Path filePath) { requireNonNull(filePath, "File is null!"); checkArgument(Files.exists(filePath), "File not exists!"); checkArgument(Files.isRegularFile(filePath), "Not a file!"); return filePath; }
IOUtils { public static Path checkFile(Path filePath) { requireNonNull(filePath, "File is null!"); checkArgument(Files.exists(filePath), "File not exists!"); checkArgument(Files.isRegularFile(filePath), "Not a file!"); return filePath; } }
IOUtils { public static Path checkFile(Path filePath) { requireNonNull(filePath, "File is null!"); checkArgument(Files.exists(filePath), "File not exists!"); checkArgument(Files.isRegularFile(filePath), "Not a file!"); return filePath; } private  IOUtils(); }
IOUtils { public static Path checkFile(Path filePath) { requireNonNull(filePath, "File is null!"); checkArgument(Files.exists(filePath), "File not exists!"); checkArgument(Files.isRegularFile(filePath), "Not a file!"); return filePath; } private  IOUtils(); static Path checkFile(Path filePath); static String readFile(Path filePath, Charset charset); static String getFileHashCode(Path filePath); }
IOUtils { public static Path checkFile(Path filePath) { requireNonNull(filePath, "File is null!"); checkArgument(Files.exists(filePath), "File not exists!"); checkArgument(Files.isRegularFile(filePath), "Not a file!"); return filePath; } private  IOUtils(); static Path checkFile(Path filePath); static String readFile(Path filePath, Charset charset); static String getFileHashCode(Path filePath);  }