Top Description Fields Constructors Methods
org.jabref.gui.externalfiles

public Class UnlinkedPDFFileFilter

extends Object
implements DirectoryStream.Filter<Path>
Class Inheritance
All Implemented Interfaces
java.nio.file.DirectoryStream.Filter
Imports
java.io.FileFilter, .IOException, java.nio.file.DirectoryStream, .DirectoryStream.Filter, .Files, .Path, org.jabref.logic.util.io.DatabaseFileLookup, org.jabref.model.database.BibDatabase, .BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.preferences.FilePreferences

FileFilter implementation, that allows only files which are not linked in any of the BibEntrys of the specified BibDatabase.

This FileFilter sits on top of another FileFilter -implementation, which it first consults. Only if this major filefilter has accepted a file, this implementation will verify on that file.

Field Summary

Modifier and TypeField and Description
private final DirectoryStream.Filter<Path>
private final DatabaseFileLookup

Constructor Summary

AccessConstructor and Description
public
UnlinkedPDFFileFilter(DirectoryStream.Filter<Path> fileFilter, BibDatabaseContext databaseContext, FilePreferences filePreferences)

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(Path
the directory entry to be tested
pathname
)

Implements java.nio.file.DirectoryStream.Filter.accept.

Decides if the given directory entry should be accepted or filtered.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileFilterback to summary
private final DirectoryStream.Filter<Path> fileFilter
lookupback to summary
private final DatabaseFileLookup lookup

Constructor Detail

UnlinkedPDFFileFilterback to summary
public UnlinkedPDFFileFilter(DirectoryStream.Filter<Path> fileFilter, BibDatabaseContext databaseContext, FilePreferences filePreferences)

Method Detail

acceptback to summary
public boolean accept(Path pathname) throws IOException

Implements java.nio.file.DirectoryStream.Filter.accept.

Doc from java.nio.file.DirectoryStream.Filter.accept.

Decides if the given directory entry should be accepted or filtered.

Parameters
pathname:Path

the directory entry to be tested

Returns:boolean

true if the directory entry should be accepted

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs