Package gov.nasa.pds.citool
Class CIToolIngester
- java.lang.Object
-
- gov.nasa.pds.citool.CIToolIngester
-
public class CIToolIngester extends Object
-
-
Constructor Summary
Constructors Constructor Description CIToolIngester(IngestReport report)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compare(URL source, URL target)
Perform a comparison between 2 files.void
ingest(Target target, boolean recurse)
Ingest catalog file(s).gov.nasa.pds.tools.label.Label
parse(URL url)
Method to parse the PDS catalog filevoid
processVolume(List<gov.nasa.pds.tools.label.Label> catLabels)
-
-
-
Constructor Detail
-
CIToolIngester
public CIToolIngester(IngestReport report)
-
-
Method Detail
-
ingest
public void ingest(Target target, boolean recurse) throws Exception
Ingest catalog file(s).- Parameters:
target
- URL of the target (directory or file)- Throws:
Exception
-
processVolume
public void processVolume(List<gov.nasa.pds.tools.label.Label> catLabels) throws Exception
- Throws:
Exception
-
parse
public gov.nasa.pds.tools.label.Label parse(URL url)
Method to parse the PDS catalog file- Parameters:
url
- URL of the pds catalog file- Returns:
- a Label object
-
compare
public boolean compare(URL source, URL target)
Perform a comparison between 2 files.- Parameters:
source
- URL of the source file.target
- URL of the target file.- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
-