1 18 19 package jcifs.smb; 20 21 public class DosFileFilter implements SmbFileFilter { 22 23 protected String wildcard; 24 protected int attributes; 25 26 31 public DosFileFilter( String wildcard, int attributes ) { 32 this.wildcard = wildcard; 33 this.attributes = attributes; 34 } 35 36 43 public boolean accept( SmbFile file ) throws SmbException { 44 return (file.getAttributes() & attributes) != 0; 45 } 46 } 47 | Popular Tags |