Class InventoryTableReader
- java.lang.Object
- 
- gov.nasa.pds.harvest.search.inventory.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 SummaryConstructors Constructor Description InventoryTableReader(File file)Constructor.InventoryTableReader(String file)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetDataFile()Gets the data file that is being read.intgetLineNumber()Gets the line number that was just read.InventoryEntrygetNext()Gets the next product file reference in the PDS Inventory file.
 
- 
- 
- 
Constructor Detail- 
InventoryTableReaderpublic InventoryTableReader(File file) throws InventoryReaderException Constructor.- Parameters:
- file- A PDS Inventory file.
- Throws:
- InventoryReaderException- If an error occurred while reading the Inventory file.
 
 - 
InventoryTableReaderpublic InventoryTableReader(String file) throws InventoryReaderException Constructor.- Parameters:
- file- A PDS Inventory file
- Throws:
- InventoryReaderException- If an error occurred while reading the Inventory file.
 
 
- 
 - 
Method Detail- 
getDataFilepublic File getDataFile() Gets the data file that is being read.- Returns:
- the data file.
 
 - 
getLineNumberpublic int getLineNumber() Gets the line number that was just read.- Returns:
- the line number.
 
 - 
getNextpublic InventoryEntry getNext() throws InventoryReaderException Gets the next product file reference in the PDS Inventory file.- Specified by:
- getNextin interface- InventoryReader
- 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.
 
 
- 
 
-