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 voidcopy(String catUrl, String copyToDir, ucar.nc2.util.CancelTask task)voidextract(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, ucar.nc2.util.CancelTask task)voidextractLoop(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, ucar.nc2.util.CancelTask task)booleanextractTypedDatasetInfo(PrintWriter out, InvDataset ds)booleangetCatalogRef(InvCatalogRef dd, Object context)Gets called for each catalogRef foundvoidgetDataset(InvDataset ds, Object context)Gets called for each dataset found.booleanopenDataset(PrintWriter out, InvDataset ds)
-
-
-
Method Detail
-
copy
public void copy(String catUrl, String copyToDir, ucar.nc2.util.CancelTask task) throws IOException
- Throws:
IOException
-
extractLoop
public void extractLoop(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, ucar.nc2.util.CancelTask task) throws IOException
- Throws:
IOException
-
extract
public void extract(PrintWriter out, String catUrl, int type, boolean skipDatasetScan, ucar.nc2.util.CancelTask task) throws IOException
- Throws:
IOException
-
getDataset
public void getDataset(InvDataset ds, Object context)
Description copied from interface:CatalogCrawler.ListenerGets called for each dataset found.- Specified by:
getDatasetin 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.ListenerGets called for each catalogRef found- Specified by:
getCatalogRefin 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)
-
-