|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An implementation of URLFilter
can be set on an
instance of URLChooser
to prevent unwanted files from
appearing in the directory listings.
URLChooser
,
URLFileSystem.list(URL, URLFilter)
Method Summary | |
boolean |
accept(java.net.URL url)
|
boolean |
equals(java.lang.Object o)
A concrete URLFilter must provide an implementation
for the equals(...) method that compares the
URLFilter to another one. |
java.lang.String |
toString()
The implementation of toString() must return a
short description that can be shown to the user describing what
the filter is filter for. |
Method Detail |
public boolean accept(java.net.URL url)
url
- The URL
that is being filtered.
true
if this filter allows the specified
URL
is allowed to be displayed or included. Returns
false
otherwise.
java.lang.NullPointerException
- if the specified URL
is null
.public boolean equals(java.lang.Object o)
URLFilter
must provide an implementation
for the equals(...)
method that compares the
URLFilter
to another one. A return value of
true
means that both this URLFilter
and
the specified URLFilter
will accept identical sets
of URL
s and that the descriptions used to identify the
filters are equal.
public java.lang.String toString()
toString()
must return a
short description that can be shown to the user describing what
the filter is filter for. For example: "JPG and GIF images".
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.