Class InventoryXMLReader
- java.lang.Object
-
- gov.nasa.pds.harvest.search.inventory.InventoryXMLReader
-
- All Implemented Interfaces:
InventoryReader
public class InventoryXMLReader extends Object implements InventoryReader
Class that supports the reading of an XML version of the PDS Inventory file.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description InventoryXMLReader(File file)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InventoryEntry
getNext()
Gets the next product file reference in the PDS Inventory file.
-
-
-
Constructor Detail
-
InventoryXMLReader
public InventoryXMLReader(File file) throws InventoryReaderException
Constructor.- Parameters:
file
- A PDS Inventory file- Throws:
InventoryReaderException
- If an error occurred while reading the Inventory file.
-
-
Method Detail
-
getNext
public InventoryEntry getNext() throws InventoryReaderException
Gets the next product file reference in the PDS Inventory file.- Specified by:
getNext
in interfaceInventoryReader
- Returns:
- A class representation of the next product file reference in the PDS inventory file. If the end-of-file has been reached, a null value will be returned.
- Throws:
InventoryReaderException
- If an error occurred while reading the Inventory file.
-
-