public class DirectoryScanner
extends java.lang.Object
Constructor and Description |
---|
DirectoryScanner(InvService service,
java.lang.String serviceTitle,
java.io.File serviceBaseUrlDir,
java.lang.String prefixPath,
boolean createCatalogRefs)
Construct a DirectoryScanner given information about the data server to be cataloged.
|
Modifier and Type | Method and Description |
---|---|
InvCatalog |
getDirCatalog(CrawlableDataset catalogCrDs,
java.lang.String filterPattern,
boolean sortInIncreasingOrder,
java.lang.String addIdBase,
boolean addDatasetSize,
java.lang.String dsNameMatchPattern,
java.lang.String startTimeSubstitutionPattern,
java.lang.String duration) |
InvCatalog |
getDirCatalog(java.io.File directory,
java.lang.String filterPattern,
boolean sortInIncreasingOrder,
boolean addDatasetSize)
Return a catalog for the given directory.
|
InvCatalog |
getDirCatalog(java.io.File directory,
java.lang.String filterPattern,
boolean sortInIncreasingOrder,
java.lang.String addIdBase,
boolean addDatasetSize,
java.lang.String dsNameMatchPattern,
java.lang.String startTimeSubstitutionPattern,
java.lang.String duration) |
public DirectoryScanner(InvService service, java.lang.String serviceTitle, java.io.File serviceBaseUrlDir, java.lang.String prefixPath, boolean createCatalogRefs)
service
- - the service for the datasets found in the directory scanned.serviceTitle
- - a title for the service (used as the title of the top-level dataset).serviceBaseUrlDir
- - the local directory to which the service's base URL references.prefixPath
- - path name to append to the urlPath of resulting datasets, can be null.createCatalogRefs
- - if true, generate a catalogRef for each directory, otherwise, recurse into directories.java.lang.IllegalArgumentException
- if invalid service type is given or root directory is not a directory.public InvCatalog getDirCatalog(java.io.File directory, java.lang.String filterPattern, boolean sortInIncreasingOrder, boolean addDatasetSize)
directory
- - the directory to represent as a catalog.filterPattern
- sortInIncreasingOrder
- java.lang.NullPointerException
- if the given directory is null.java.lang.IllegalArgumentException
- if the given directory is not actually a directory or if it is not under the service base URL directory.public InvCatalog getDirCatalog(java.io.File directory, java.lang.String filterPattern, boolean sortInIncreasingOrder, java.lang.String addIdBase, boolean addDatasetSize, java.lang.String dsNameMatchPattern, java.lang.String startTimeSubstitutionPattern, java.lang.String duration)
public InvCatalog getDirCatalog(CrawlableDataset catalogCrDs, java.lang.String filterPattern, boolean sortInIncreasingOrder, java.lang.String addIdBase, boolean addDatasetSize, java.lang.String dsNameMatchPattern, java.lang.String startTimeSubstitutionPattern, java.lang.String duration)