public class FSManifestIterable extends AbstractFSManifestIterable<java.io.File>
Modifier and Type | Field and Description |
---|---|
static java.io.FilenameFilter |
DEFAULT_BUNLDE_FILTER
Default bundle filter that select only .jar files
|
static java.io.FilenameFilter |
DEFAULT_DIR_FILTER
Default directory filter that doesn't select .svn directories, neither the directories that
match
NON_BUNDLE_DIRS . |
static java.util.Set<java.lang.String> |
NON_BUNDLE_DIRS
List of directory name that usually contains jars but are not bundles
|
Constructor and Description |
---|
FSManifestIterable(java.io.File root)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.net.URI |
buildBundleURI(java.io.File location) |
java.io.FilenameFilter |
getBundleFilter() |
java.io.FilenameFilter |
getDirFilter() |
protected java.io.InputStream |
getInputStream(java.io.File f) |
protected java.util.List<java.io.File> |
listBundleFiles(java.io.File dir) |
protected java.util.List<java.io.File> |
listDirs(java.io.File dir) |
void |
setBundleFilter(java.io.FilenameFilter bundleFilter) |
void |
setDirFilter(java.io.FilenameFilter dirFilter) |
iterator
public static final java.util.Set<java.lang.String> NON_BUNDLE_DIRS
public static final java.io.FilenameFilter DEFAULT_DIR_FILTER
NON_BUNDLE_DIRS
.public static final java.io.FilenameFilter DEFAULT_BUNLDE_FILTER
public FSManifestIterable(java.io.File root)
root
- the root directory of the file system to lookuppublic java.io.FilenameFilter getDirFilter()
public void setDirFilter(java.io.FilenameFilter dirFilter)
public java.io.FilenameFilter getBundleFilter()
public void setBundleFilter(java.io.FilenameFilter bundleFilter)
protected java.net.URI buildBundleURI(java.io.File location)
buildBundleURI
in class AbstractFSManifestIterable<java.io.File>
protected java.io.InputStream getInputStream(java.io.File f) throws java.io.FileNotFoundException
getInputStream
in class AbstractFSManifestIterable<java.io.File>
java.io.FileNotFoundException
protected java.util.List<java.io.File> listBundleFiles(java.io.File dir)
listBundleFiles
in class AbstractFSManifestIterable<java.io.File>
protected java.util.List<java.io.File> listDirs(java.io.File dir)
listDirs
in class AbstractFSManifestIterable<java.io.File>