|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.virtual.plugins.vfs.helpers.AbstractVirtualFileFilterWithAttributes
org.jboss.virtual.plugins.vfs.helpers.SuffixMatchFilter
public class SuffixMatchFilter
Matches a file name against a list of suffixes.
| Constructor Summary | |
|---|---|
SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes)
Create a new SuffixMatchFilter. |
|
SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes,
VisitorAttributes attributes)
Create a new SuffixMatchFilter. |
|
SuffixMatchFilter(java.lang.String suffix)
Create a new SuffixMatchFilter, using VisitorAttributes.DEFAULT |
|
SuffixMatchFilter(java.lang.String suffix,
VisitorAttributes attributes)
Create a new SuffixMatchFilter. |
|
| Method Summary | |
|---|---|
boolean |
accepts(VirtualFile file)
Accept any file that ends with one of the filter suffixes. |
| Methods inherited from class org.jboss.virtual.plugins.vfs.helpers.AbstractVirtualFileFilterWithAttributes |
|---|
getAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SuffixMatchFilter(java.lang.String suffix)
VisitorAttributes.DEFAULT
suffix - the suffix
java.lang.IllegalArgumentException - for a null suffix
public SuffixMatchFilter(java.lang.String suffix,
VisitorAttributes attributes)
suffix - the suffixattributes - the attributes, pass null to use VisitorAttributes.DEFAULT
java.lang.IllegalArgumentException - for a null suffixpublic SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes)
suffixes - - the list of file suffixes to accept.
java.lang.IllegalArgumentException - for a null suffixes
public SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes,
VisitorAttributes attributes)
suffixes - - the list of file suffixes to accept.attributes - the attributes, pass null to use VisitorAttributes.DEFAULT
java.lang.IllegalArgumentException - for a null suffixes| Method Detail |
|---|
public boolean accepts(VirtualFile file)
file - the virtual file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||