Top Fields Constructors Methods
org.jabref.gui.externalfiles

public Class GitIgnoreFileFilter

extends Object
implements DirectoryStream.Filter<Path>
Class Inheritance
All Implemented Interfaces
java.nio.file.DirectoryStream.Filter
Imports
java.io.IOException, java.nio.file.DirectoryStream, .FileSystems, .Files, .Path, .PathMatcher, java.util.HashSet, .Set, java.util.stream.Collectors, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private Set<PathMatcher>
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
path
)

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

gitIgnorePatternsback to summary
private Set<PathMatcher> gitIgnorePatterns
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

GitIgnoreFileFilterback to summary
public GitIgnoreFileFilter(Path path)

Method Detail

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