gov.nasa.pds.search.core.extractor
Class Extractor

java.lang.Object
  extended by gov.nasa.pds.search.core.extractor.Extractor

public class Extractor
extends Object

Version:
$Revision: 10575 $
Author:
pramirez, jpadams

Constructor Summary
Extractor(PrintWriter writer, String name, String file, String registryUrl, int queryMax)
          Initialize global variables used throughout
 
Method Summary
 List extract(File extractorDir)
          (non-Javadoc)
 boolean isCleanedAttr(String s1)
           
 void printFileFooter()
          Display the footer for the XML file.
 void printFileHeader()
          Display the header for the XML file.
 void printXml(String name, String value, boolean clean)
          Display the field name and value in XML format.
 String remNull(String s1)
          Remove String Nulls
 String repAllCharWStr(String s1)
          Replace HTML entities & with &, < with <, > with >, and " with "
 String repCharWStr(String str1, char rc, String rstr)
          Replace character with string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extractor

public Extractor(PrintWriter writer,
                 String name,
                 String file,
                 String registryUrl,
                 int queryMax)
Initialize global variables used throughout

Parameters:
name - - class of catalog to be extracted
value - - name of column properties file
Method Detail

extract

public List extract(File extractorDir)
             throws ExtractionException
(non-Javadoc)

Throws:
ExtractionException
See Also:
gov.nasa.pds.tse.catalog.Extractor#extract()

printFileHeader

public void printFileHeader()
Display the header for the XML file.


printFileFooter

public void printFileFooter()
Display the footer for the XML file.


printXml

public void printXml(String name,
                     String value,
                     boolean clean)
Display the field name and value in XML format.

Parameters:
name - - name of field
value - - value for specific record

repAllCharWStr

public String repAllCharWStr(String s1)
Replace HTML entities & with &, < with <, > with >, and " with "


remNull

public String remNull(String s1)
Remove String Nulls


repCharWStr

public String repCharWStr(String str1,
                          char rc,
                          String rstr)
Replace character with string


isCleanedAttr

public boolean isCleanedAttr(String s1)


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