|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsmbdav.filters.NotFilter
This class inverts the result of an underlying filter; a file will be accepted by the filter only if the underlying filter rejects the file. This is effectively a logical NOT.
This filter accepts a filter parameter containing the
underlying filter class. If the filter class implements the
smbdav.DavenportFileFilter interface, the instance will be
initialized with a copy of this filter's properties (excluding the
"filter" property itself). For example:
<init-param>
<param-name>fileFilters</param-name>
<param-value>myNotFilter</param-value>
</init-param>
<init-param>
<param-name>myNotFilter</param-name>
<param-value>smbdav.filters.NotFilter</param-value>
</init-param>
<init-param>
<param-name>myNotFilter.filter</param-name>
<param-value>com.foo.MyFilter</param-value>
</init-param>
<init-param>
<param-name>myNotFilter.subProperty</param-name>
<param-value>subValue</param-value>
</init-param>
The fileFilters parameter declares a single
NotFilter ("myNotFilter"). This filter is passed
the "filter" property, specifying com.foo.MyFilter as the
subfilter class. This subfilter class is instantiated, and provided a copy
of this filter's properties (containing the single property "subProperty"
with the value "subValue"). Note that the "filter" property is removed
from the properties copy provided to the subfilter.
| Constructor Summary | |
NotFilter()
|
|
| Method Summary | |
boolean |
accept(jcifs.smb.SmbFile file)
|
void |
destroy()
Destroys the filter instance. |
void |
init(java.util.Properties properties)
Initializes the filter with the provided properties. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NotFilter()
| Method Detail |
public void init(java.util.Properties properties)
throws java.lang.Exception
DavenportFileFilter
init in interface DavenportFileFilterproperties - The filter's initialization properties.
java.lang.Exception - If an error occurs during initialization.public void destroy()
DavenportFileFilter
destroy in interface DavenportFileFilter
public boolean accept(jcifs.smb.SmbFile file)
throws jcifs.smb.SmbException
accept in interface jcifs.smb.SmbFileFilterjcifs.smb.SmbException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||