gov.nasa.pds.validate.inventory.reader
Class InventoryTableReader

java.lang.Object
  extended by 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
InventoryTableReader(File file)
          Constructor.
InventoryTableReader(String file)
          Constructor.
 
Method Summary
 File 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InventoryTableReader

public InventoryTableReader(File file)
                     throws InventoryReaderException
Constructor.

Parameters:
file - A PDS Inventory file.
Throws:
InventoryReaderException - If an error occurred while reading the Inventory file.

InventoryTableReader

public 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

getDataFile

public File 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

public InventoryEntry getNext()
                       throws InventoryReaderException
Gets the next product file reference in the PDS Inventory file.

Specified by:
getNext in 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.


Copyright © 2010-2012 Planetary Data System. All Rights Reserved.