Class InventoryTableReader
java.lang.Object
gov.nasa.pds.validate.inventory.reader.InventoryTableReader
- All Implemented Interfaces:
InventoryReader
public class InventoryTableReader extends Object implements InventoryReader
Class that supports reading of a table-version of the PDS
Inventory file.
- Author:
- mcayanan
-
Constructor Summary
Constructors Constructor Description InventoryTableReader(URL url)
Constructor. -
Method Summary
Modifier and Type Method Description URL
getDataFile()
Gets the data file that is being read.int
getLineNumber()
Gets the line number that was just read.InventoryEntry
getNext()
Gets the next product file reference in the PDS Inventory file.
-
Constructor Details
-
InventoryTableReader
Constructor.- Parameters:
url
- The URL to the PDS Inventory file.- Throws:
InventoryReaderException
- If an error occurred while reading the Inventory file.URISyntaxException
MalformedURLException
-
-
Method Details
-
getDataFile
Gets the data file that is being read.- Returns:
- the data file.
-
getLineNumber
public int getLineNumber()Gets the line number that was just read.- Returns:
- the line number.
-
getNext
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.
-