public class DosFileFilter extends Object implements SmbFileFilter
Constructor and Description |
---|
DosFileFilter(String wildcard,
int attributes)
This filter can be considerably more efficient than other file filters
as the specifed wildcard and attributes are passed to the server for
filtering there (although attributes are largely ignored by servers
they are filtered locally by the default accept method).
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(SmbFile file)
This returns true if the file's attributes contain any of the attributes
specified for this filter.
|
public DosFileFilter(String wildcard, int attributes)
wildcard
- attributes
- public boolean accept(SmbFile file) throws SmbException
accept
in interface SmbFileFilter
SmbException
Copyright © 2017. All rights reserved.