gov.nasa.pds.imaging.generate.label
Class PDS3LabelReader
java.lang.Object
gov.nasa.pds.imaging.generate.label.PDS3LabelReader
public class PDS3LabelReader
- extends Object
- Author:
- astanboli, atinio, jpadams
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDS3LabelReader
public PDS3LabelReader()
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-2013 Planetary Data System. All Rights Reserved.