public class DIFWriter extends Object
Constructor and Description |
---|
DIFWriter() |
Modifier and Type | Method and Description |
---|---|
void |
doOneDataset(InvDataset ds)
Write a DIF record for a specific dataset
|
void |
doOneDataset(InvDataset ds,
String fileDir,
StringBuilder mess)
Write a DIF record for a specific dataset
|
boolean |
isDatasetUseable(InvDataset ds,
StringBuilder sbuff)
See if a dataset is harvestable to a DIF record.
|
static void |
main(String[] args)
testing
|
void |
writeDatasetEntries(InvCatalogImpl cat,
String fileDir,
StringBuilder mess)
Write all harvestable datasets to DIF records that have at least the minimum metadata.
|
public void writeDatasetEntries(InvCatalogImpl cat, String fileDir, StringBuilder mess)
cat
- harvest the datasets starting from herefileDir
- write records to this directory. The dataset id is used as the filename, appending "dif.xml"mess
- status messages are appended herepublic void doOneDataset(InvDataset ds)
ds
- use this datasetpublic void doOneDataset(InvDataset ds, String fileDir, StringBuilder mess)
ds
- use this datasetfileDir
- write records to this directory. The dataset id is used as the filename, appending "dif.xml"mess
- status messages are appended herepublic boolean isDatasetUseable(InvDataset ds, StringBuilder sbuff)
ds
- check this dataset.sbuff
- put status messages here.Copyright © 1999–2019 UCAR/Unidata. All rights reserved.