gov.nasa.pds.search.core.parse
Class DocumentParser

java.lang.Object
  extended by gov.nasa.pds.search.core.parse.DocumentParser

public class DocumentParser
extends Object

Parses a document for text search and creates a Lucene document.

Version:
$Revision: 10572 $
Author:
pramirez

Constructor Summary
DocumentParser()
           
 
Method Summary
static void main(String[] args)
          Used to test the current java program.
static StringBuffer parse(File file)
          Creates the document object a parses out all of the data from each individual XML documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentParser

public DocumentParser()
Method Detail

parse

public static StringBuffer parse(File file)
Creates the document object a parses out all of the data from each individual XML documents.

Parameters:
file - - The individual profile document for each record for the current class.
Returns:
indexDoc - Lucene DOM document returned with parsed data.
Throws:
ParseException

main

public static void main(String[] args)
                 throws Exception
Used to test the current java program.

Parameters:
args -
Throws:
Exception


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