Package gov.nasa.pds.validate.checksum
Class ChecksumManifest
- java.lang.Object
-
- gov.nasa.pds.validate.checksum.ChecksumManifest
-
public class ChecksumManifest extends Object
Class that reads a checksum manifest file.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description ChecksumManifest(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashMap<URL,String>
read(URL manifest)
Reads a checksum manifest file.
-
-
-
Constructor Detail
-
ChecksumManifest
public ChecksumManifest(String baseUrl) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
read
public HashMap<URL,String> read(URL manifest) throws IOException
Reads a checksum manifest file.- Parameters:
manifest
- The checksum manifest.- Returns:
- A hash map of file paths(absolute or relative) to checksum values.
- Throws:
IOException
- If there was an error reading the checksum manifest.
-
-