gov.nasa.pds.harvest.context
Class InventoryTableReader

java.lang.Object
  extended by gov.nasa.pds.harvest.context.InventoryTableReader
All Implemented Interfaces:
InventoryKeys, InventoryReader

public class InventoryTableReader
extends Object
implements InventoryReader, InventoryKeys

Class that supports reading of a table-version of the PDS Inventory file.

Author:
mcayanan

Field Summary
static String DATA_FILE_XPATH
           
static String FILE_SPEC_FIELD_NUM_XPATH
           
static String LIDVID_FIELD_NUM_XPATH
           
 
Fields inherited from interface gov.nasa.pds.harvest.context.InventoryKeys
CHECKSUM, FILE_SPEC, IDENTITY_REFERENCE
 
Constructor Summary
InventoryTableReader(File file, PDSNamespaceContext context)
          Constructor.
InventoryTableReader(String file, PDSNamespaceContext context)
          Constructor
 
Method Summary
 InventoryEntry getNext()
          Gets the next product file reference in the PDS Inventory file.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_SPEC_FIELD_NUM_XPATH

public static String FILE_SPEC_FIELD_NUM_XPATH

LIDVID_FIELD_NUM_XPATH

public static String LIDVID_FIELD_NUM_XPATH

DATA_FILE_XPATH

public static String DATA_FILE_XPATH
Constructor Detail

InventoryTableReader

public InventoryTableReader(File file,
                            PDSNamespaceContext context)
                     throws InventoryReaderException
Constructor.

Parameters:
file - A PDS Inventory file
context - A PDSNamespaceContext object, which allows this method to handle namespaces while extracting metadata from the Inventory file.
Throws:
InventoryReaderException

InventoryTableReader

public InventoryTableReader(String file,
                            PDSNamespaceContext context)
                     throws InventoryReaderException
Constructor

Parameters:
file - A PDS Inventory file
context - A PDSNamespaceContext object, which allows this method to handle namespaces while extracting metadata from the Inventory file.
Throws:
InventoryReaderException
Method Detail

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

main

public static void main(String[] args)


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