Constructor and Description |
---|
DirectoryLister(File dir,
Pattern filter)
Creates a new directory lister.
|
DirectoryLister(File dir,
Pattern[] includes,
Pattern[] excludes)
Creates a new directory lister.
|
Modifier and Type | Method and Description |
---|---|
List<URL> |
list()
Returns a list of urls the lister knows about.
|
public DirectoryLister(File dir, Pattern filter)
dir
- the base directory from where the files should be listedfilter
- filter to be used to filter entries from the directorypublic DirectoryLister(File dir, Pattern[] includes, Pattern[] excludes)
dir
- the base directory from where the files should be listedincludes
- filters to be used to include entries from the directoryexcludes
- filters to be used to exclude entries from the directorypublic List<URL> list() throws MalformedURLException
list
in interface Lister
MalformedURLException
- If an underlying problem occurs in the OSGi framework.Copyright © 2006–2019 OPS4J - Open Participation Software for Java. All rights reserved.