Class FileVerifier.BasePathProvider

java.lang.Object
org.approvej.verify.FileVerifier.BasePathProvider
All Implemented Interfaces:
FileVerifier.PathProvider
Enclosing class:
FileVerifier

public static final class FileVerifier.BasePathProvider extends Object implements FileVerifier.PathProvider
A FileVerifier.PathProvider that uses the path of a previously approved file to determine the path the received file and the filename extension.

For example,

  1. if the given approved path is /path/to/file-approved.json, the receivedPath will be /path/to/file-received.json
  2. if the given approved path is /path/to/file.txt, the receivedPath will be /path/to/file-received.txt

Note that the approved infix is not enforced on the given approved file path. It is also not necessary for the approved file to exist.