gov.nasa.pds.imaging.generate.label
Class PDS3LabelReader

java.lang.Object
  extended by gov.nasa.pds.imaging.generate.label.PDS3LabelReader

public class PDS3LabelReader
extends Object

Author:
astanboli, atinio, jpadams

Constructor Summary
PDS3LabelReader()
           
 
Method Summary
 Document parseLabel(String filePath)
          Parse the label and create a XML DOM representation.
 Map<String,Map> traverseDOM(Node root)
          Traverses the DOM returned by the PDSLabelToDom object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDS3LabelReader

public PDS3LabelReader()
Method Detail

parseLabel

public Document parseLabel(String filePath)
                    throws FileNotFoundException
Parse the label and create a XML DOM representation. PDSLabelToDom: Within the DOM returned the Elements are: PDS3 - At top of document to describe it is a PDS3 label COMMENT - All commented text in label is contained within these elements item - A data item at base level of label GROUP - A group of related elements containing a collection of items OBJECT - A group of related elements containing a collection of items

Parameters:
filePath -
Throws:
FileNotFoundException

traverseDOM

public Map<String,Map> traverseDOM(Node root)
Traverses the DOM returned by the PDSLabelToDom object.

Parameters:
root -


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