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,
boolean isRecursive)
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
|
static FeatureExtractorConfig |
mergeEnabledFeaturesFromPolicy(FeatureExtractorConfig currentConfig,
InputStream policy) |
public static List<File> filterPdfFiles(List<File> toFilter, boolean isRecursive)
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 nullpublic static FeatureExtractorConfig mergeEnabledFeaturesFromPolicy(FeatureExtractorConfig currentConfig,
InputStream policy)
throws ParserConfigurationException,
IOException,
SAXException,
XPathExpressionException
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.