public class CatalogExtractor extends java.lang.Object implements CatalogCrawler.Listener
Constructor and Description |
---|
CatalogExtractor(boolean verbose)
Constuctor
|
Modifier and Type | Method and Description |
---|---|
void |
copy(java.lang.String catUrl,
java.lang.String copyToDir,
CancelTask task) |
void |
extract(java.io.PrintWriter out,
java.lang.String catUrl,
int type,
boolean skipDatasetScan,
CancelTask task) |
void |
extractLoop(java.io.PrintWriter out,
java.lang.String catUrl,
int type,
boolean skipDatasetScan,
CancelTask task) |
boolean |
extractTypedDatasetInfo(java.io.PrintWriter out,
InvDataset ds) |
boolean |
getCatalogRef(InvCatalogRef dd,
java.lang.Object context)
Gets called for each catalogRef found
|
void |
getDataset(InvDataset ds,
java.lang.Object context)
Gets called for each dataset found.
|
boolean |
openDataset(java.io.PrintWriter out,
InvDataset ds) |
public CatalogExtractor(boolean verbose)
verbose
- output status messagespublic void copy(java.lang.String catUrl, java.lang.String copyToDir, CancelTask task) throws java.io.IOException
java.io.IOException
public void extractLoop(java.io.PrintWriter out, java.lang.String catUrl, int type, boolean skipDatasetScan, CancelTask task) throws java.io.IOException
java.io.IOException
public void extract(java.io.PrintWriter out, java.lang.String catUrl, int type, boolean skipDatasetScan, CancelTask task) throws java.io.IOException
java.io.IOException
public void getDataset(InvDataset ds, java.lang.Object context)
CatalogCrawler.Listener
getDataset
in interface CatalogCrawler.Listener
ds
- the datasetcontext
- caller can pass this object in (used for thread safety)public boolean getCatalogRef(InvCatalogRef dd, java.lang.Object context)
CatalogCrawler.Listener
getCatalogRef
in interface CatalogCrawler.Listener
dd
- the datasetcontext
- caller can pass this object in (used for thread safety)public boolean openDataset(java.io.PrintWriter out, InvDataset ds)
public boolean extractTypedDatasetInfo(java.io.PrintWriter out, InvDataset ds)