public class DIFWriter
extends java.lang.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,
java.lang.String fileDir,
java.lang.StringBuilder mess)
Write a DIF record for a specific dataset
|
boolean |
isDatasetUseable(InvDataset ds,
java.lang.StringBuilder sbuff)
See if a dataset is harvestable to a DIF record.
|
static void |
main(java.lang.String[] args)
testing
|
void |
writeDatasetEntries(InvCatalogImpl cat,
java.lang.String fileDir,
java.lang.StringBuilder mess)
Write all harvestable datasets to DIF records that have at least the minimum metadata.
|
public void writeDatasetEntries(InvCatalogImpl cat, java.lang.String fileDir, java.lang.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, java.lang.String fileDir, java.lang.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, java.lang.StringBuilder sbuff)
ds
- check this dataset.sbuff
- put status messages here.public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception