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

public Class ChainedFilters

extends Object
implements DirectoryStream.Filter<Path>
Class Inheritance
All Implemented Interfaces
java.nio.file.DirectoryStream.Filter
Imports
java.io.IOException, java.nio.file.DirectoryStream, .Path, java.util.Arrays, org.slf4j.Logger, .LoggerFactory

Chains the given filters - if ALL of them accept, the result is also accepted

Field Summary

Modifier and TypeField and Description
private DirectoryStream.Filter<Path>[]
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

filtersback to summary
private DirectoryStream.Filter<Path>[] filters
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

ChainedFiltersback to summary
public ChainedFilters(DirectoryStream.Filter<Path>... filters)

Method Detail

acceptback to summary
public boolean accept(Path entry) 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
entry: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