public class PosixGroupSelector extends java.lang.Object implements FileSelector
Group is defined in terms of Files.readAttributes(java.nio.file.Path, java.lang.Class<A>, java.nio.file.LinkOption...)
group attribute as provided by PosixFileAttributes,
this means the selector will accept any file that exists and has the given
group attribute.
| Constructor and Description |
|---|
PosixGroupSelector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file)
Method that each selector will implement to create their
selection behaviour.
|
void |
setFollowSymlinks(boolean followSymlinks)
Sets the "follow symbolic links" option.
|
void |
setGroup(java.lang.String group)
Sets the group name to look for.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSelectedpublic void setGroup(java.lang.String group)
group - the group namepublic void setFollowSymlinks(boolean followSymlinks)
followSymlinks - whether or not symbolic links should be followed.public boolean isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file)
FileSelectorisSelected in interface FileSelectorbasedir - A java.io.File object for the base directoryfilename - The name of the file to checkfile - A File object for this filename