public class CatalogExtractor extends Object implements CatalogCrawler.Listener
| Constructor and Description |
|---|
CatalogExtractor(boolean verbose)
Constuctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(String catUrl,
String copyToDir,
CancelTask task) |
void |
extract(PrintStream out,
String catUrl,
int type,
boolean skipDatasetScan,
CancelTask task) |
void |
extractLoop(PrintStream out,
String catUrl,
int type,
boolean skipDatasetScan,
CancelTask task) |
boolean |
extractTypedDatasetInfo(PrintStream out,
InvDataset ds) |
boolean |
getCatalogRef(InvCatalogRef dd,
Object context)
Gets called for each catalogRef found
|
void |
getDataset(InvDataset ds,
Object context)
Gets called for each dataset found.
|
boolean |
openDataset(PrintStream out,
InvDataset ds) |
public CatalogExtractor(boolean verbose)
verbose - output status messagespublic void copy(String catUrl, String copyToDir, CancelTask task) throws IOException
IOExceptionpublic void extractLoop(PrintStream out, String catUrl, int type, boolean skipDatasetScan, CancelTask task) throws IOException
IOExceptionpublic void extract(PrintStream out, String catUrl, int type, boolean skipDatasetScan, CancelTask task) throws IOException
IOExceptionpublic void getDataset(InvDataset ds, Object context)
CatalogCrawler.ListenergetDataset in interface CatalogCrawler.Listenerds - the datasetcontext - caller can pass this object in (used for thread safety)public boolean getCatalogRef(InvCatalogRef dd, Object context)
CatalogCrawler.ListenergetCatalogRef in interface CatalogCrawler.Listenerdd - the datasetcontext - caller can pass this object in (used for thread safety)public boolean openDataset(PrintStream out, InvDataset ds)
public boolean extractTypedDatasetInfo(PrintStream out, InvDataset ds)
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.