パッケージ jcifs.smb
クラス DosFileFilter
- java.lang.Object
-
- jcifs.smb.DosFileFilter
-
- すべての実装されたインタフェース:
SmbFileFilter
public class DosFileFilter extends Object implements SmbFileFilter
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected intattributesprotected Stringwildcard
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 DosFileFilter(String wildcard, int attributes)This filter can be considerably more efficient than other file filters as the specified 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).
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 booleanaccept(SmbFile file)This returns true if the file's attributes contain any of the attributes specified for this filter.
-
-
-
フィールドの詳細
-
wildcard
protected String wildcard
-
attributes
protected int attributes
-
-
コンストラクタの詳細
-
DosFileFilter
public DosFileFilter(String wildcard, int attributes)
This filter can be considerably more efficient than other file filters as the specified 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).- パラメータ:
wildcard-attributes-
-
-
メソッドの詳細
-
accept
public boolean accept(SmbFile file) throws SmbException
This returns true if the file's attributes contain any of the attributes specified for this filter. The wildcard has no influence on this method as the server should have performed that filtering already. The attributes are asserted here only because server file systems may not support filtering by all attributes (e.g. even though ATTR_DIRECTORY was specified the server may still return objects that are not directories).- 定義:
acceptインタフェース内SmbFileFilter- 戻り値:
- whether the given file should be included
- 例外:
SmbException
-
-