public final class ApplicationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
doAllFilesExist(List<File> toCheck)
Checks all files in a list to ensure that they exist and returns true if
and only if all files in the list exist.
|
static List<File> |
filterPdfFiles(List<File> toFilter)
Filters the passed list files by removing all files without a ".pdf"
extension.
|
static boolean |
isLegalExtension(List<File> toCheck,
String[] extensions)
Checks a list of files to ensure that they all have an extension supplied
in the list of extensions
|
public static List<File> filterPdfFiles(List<File> toFilter)
toFilter
- the list of files to filter, can not be nullIllegalArgumentException
- when toFilter is nullpublic static boolean doAllFilesExist(List<File> toCheck)
toCheck
- the list of files to testIllegalArgumentException
- when toCheck is nullpublic static boolean isLegalExtension(List<File> toCheck, String[] extensions)
toCheck
- the list of files to check the extensions ofextensions
- the list of allowed extensionsIllegalArgumentException
- when toCheck is nullCopyright © 2015–2017 The veraPDF Consortium. All rights reserved.