Verified Owner
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.IOException, java.nio.file.DirectoryStream, .DirectoryStream.Filter, .Files, .Path, org.jabref.logic.FilePreferences, org.jabref.logic.util.io.DatabaseFileLookup, org.jabref.model.database.BibDatabaseContext

java.io.FileFilter implementation, that allows only files which are not linked in any of the org.jabref.model.entry.BibEntrys of the specified org.jabref.model.database.BibDatabase.

This java.io.FileFilter sits on top of another java.io.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 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.

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