public class HarvestDocument
extends java.lang.Object
Constructor and Description |
---|
HarvestDocument(Harvester harvester,
HarvestSiteSchedule harvestSiteSchedule,
java.lang.String scope,
int identifier,
int revision,
java.lang.String documentType,
java.lang.String documentURL)
Creates a new instance of HarvestDocument.
|
Modifier and Type | Method and Description |
---|---|
java.io.StringReader |
getSiteDocument()
Retrieve the document from the site using its
|
void |
harvestDocument()
Harvest the document from the site.
|
int |
metacatHighestRevision()
Determines the highest revision that Metacat has for this document.
|
void |
prettyPrint(java.io.PrintStream out)
Print the document URL following by its scope.identifier.revision.
|
void |
printOutput(java.io.PrintStream out)
Print the data fields and values in this HarvestDocument object.
|
public HarvestDocument(Harvester harvester, HarvestSiteSchedule harvestSiteSchedule, java.lang.String scope, int identifier, int revision, java.lang.String documentType, java.lang.String documentURL)
harvester
- the parent Harvester objectharvestSiteSchedule
- the parent HarvestSiteSchedule objectscope
- the value of the identifier
- the value of the revision
- the value of the documentType
- the value of the documentURL
- the value of the public java.io.StringReader getSiteDocument()
public void harvestDocument()
public int metacatHighestRevision()
public void printOutput(java.io.PrintStream out)
out
- the PrintStream to write topublic void prettyPrint(java.io.PrintStream out)
out
- the PrintStream to write toCopyright © 2020 Regents of the University of California. All Rights Reserved.