/** * Returns a <code>FileValidator</code> for existing directories. * * @return a <code>FileValidator</code> for existing directories. */ public static FileValidator getExistingDirectoryInstance() { final FileValidator validator = new FileValidator(); validator.setExisting(true); validator.setDirectory(true); return validator; }
/** * Returns a <code>FileValidator</code> for existing files. * * @return a <code>FileValidator</code> for existing files. */ public static FileValidator getExistingFileInstance() { final FileValidator validator = new FileValidator(); validator.setExisting(true); validator.setFile(true); return validator; }