Verified Owner
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.Set, java.util.stream.Collectors, .Stream, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final Path
private final Set<PathMatcher>
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(Path path)

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

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

private static Path
safeRelativize(Path base, Path child)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseDirback to summary
private final Path baseDir
gitIgnorePatternsback to summary
private final 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.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
safeRelativizeback to summary
private static Path safeRelativize(Path base, Path child)