thredds.catalog.dl
Class DIFWriter

java.lang.Object
  extended by thredds.catalog.dl.DIFWriter

public class DIFWriter
extends Object


Constructor Summary
DIFWriter()
           
 
Method Summary
 void doOneDataset(InvDataset ds)
          Write a DIF record for a specific dataset
 void doOneDataset(InvDataset ds, String fileDir, StringBuffer mess)
          Write a DIF record for a specific dataset
 boolean isDatasetUseable(InvDataset ds, StringBuffer sbuff)
          See if a dataset is harvestable to a DIF record.
static void main(String[] args)
          testing
 void writeDatasetEntries(InvCatalogImpl cat, String fileDir, StringBuffer mess)
          Write all harvestable datasets to DIF records that have at least the minimum metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DIFWriter

public DIFWriter()
Method Detail

writeDatasetEntries

public void writeDatasetEntries(InvCatalogImpl cat,
                                String fileDir,
                                StringBuffer mess)
Write all harvestable datasets to DIF records that have at least the minimum metadata. Call isDatasetUseable() to find out.

Parameters:
cat - harvest the datasets starting from here
fileDir - write records to this directory. The dataset id is used as the filename, appending "dif.xml"
mess - status messages are appended here

doOneDataset

public void doOneDataset(InvDataset ds)
Write a DIF record for a specific dataset

Parameters:
ds - use this dataset

doOneDataset

public void doOneDataset(InvDataset ds,
                         String fileDir,
                         StringBuffer mess)
Write a DIF record for a specific dataset

Parameters:
ds - use this dataset
fileDir - write records to this directory. The dataset id is used as the filename, appending "dif.xml"
mess - status messages are appended here

isDatasetUseable

public boolean isDatasetUseable(InvDataset ds,
                                StringBuffer sbuff)
See if a dataset is harvestable to a DIF record.

Parameters:
ds - check this dataset.
sbuff - put status messages here.
Returns:
true if a DIF record can be written

main

public static void main(String[] args)
                 throws Exception
testing

Throws:
Exception


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.