Package thredds.catalog.crawl
Class CatalogExtractor
- java.lang.Object
-
- thredds.catalog.crawl.CatalogExtractor
-
- All Implemented Interfaces:
CatalogCrawler.Listener
public class CatalogExtractor extends Object implements CatalogCrawler.Listener
Utilities for extracting info from a catalog.
-
-
Constructor Summary
Constructors Constructor Description CatalogExtractor(boolean verbose)
Constuctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copy(String catUrl, String copyToDir, CancelTask task)
void
extract(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, CancelTask task)
void
extractLoop(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, CancelTask task)
boolean
extractTypedDatasetInfo(PrintWriter out, InvDataset ds)
boolean
getCatalogRef(InvCatalogRef dd, Object context)
Gets called for each catalogRef foundvoid
getDataset(InvDataset ds, Object context)
Gets called for each dataset found.boolean
openDataset(PrintWriter out, InvDataset ds)
-
-
-
Method Detail
-
copy
public void copy(String catUrl, String copyToDir, CancelTask task) throws IOException
- Throws:
IOException
-
extractLoop
public void extractLoop(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, CancelTask task) throws IOException
- Throws:
IOException
-
extract
public void extract(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, CancelTask task) throws IOException
- Throws:
IOException
-
getDataset
public void getDataset(InvDataset ds, Object context)
Description copied from interface:CatalogCrawler.Listener
Gets called for each dataset found.- Specified by:
getDataset
in interfaceCatalogCrawler.Listener
- Parameters:
ds
- the datasetcontext
- caller can pass this object in (used for thread safety)
-
getCatalogRef
public boolean getCatalogRef(InvCatalogRef dd, Object context)
Description copied from interface:CatalogCrawler.Listener
Gets called for each catalogRef found- Specified by:
getCatalogRef
in interfaceCatalogCrawler.Listener
- Parameters:
dd
- the datasetcontext
- caller can pass this object in (used for thread safety)- Returns:
- true to process, false to skip
-
openDataset
public boolean openDataset(PrintWriter out, InvDataset ds)
-
extractTypedDatasetInfo
public boolean extractTypedDatasetInfo(PrintWriter out, InvDataset ds)
-
-