public class OwnedBySelector extends java.lang.Object implements FileSelector
Owner is defined in terms of
Files.getOwner(java.nio.file.Path, java.nio.file.LinkOption...), this means the selector will accept
any file that exists and is owned by the given user. If the
getOwner method throws an
the file in question is not included.
|Constructor and Description|
|Modifier and Type||Method and Description|
Method that each selector will implement to create their selection behaviour.
Sets the "follow symbolic links" option.
Sets the user name to look for.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setOwner(java.lang.String owner)
owner- the user name
public 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)