org.apache.lucenesandbox.xmlindexingdemo
Class XMLDocumentHandlerTxt

java.lang.Object
  extended by org.apache.lucenesandbox.xmlindexingdemo.XMLDocumentHandlerTxt

public class XMLDocumentHandlerTxt
extends java.lang.Object


Field Summary
private  org.apache.lucene.document.Document doc
           
private  java.util.ArrayList docs
           
 
Constructor Summary
XMLDocumentHandlerTxt(java.io.File xmlFile)
           
 
Method Summary
 org.apache.lucene.document.Document createDoc(java.lang.String str)
          Creates empty doc from a str of form: FBIS3-1
 java.util.ArrayList getDocuments()
           
 void parse(java.io.File file)
           
 java.lang.String stripTagsOut(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

private org.apache.lucene.document.Document doc

docs

private java.util.ArrayList docs
Constructor Detail

XMLDocumentHandlerTxt

public XMLDocumentHandlerTxt(java.io.File xmlFile)
                      throws java.io.IOException
Parameters:
xmlFile -
docTag - - Tag that indicates document
Throws:
java.io.IOException
Method Detail

parse

public void parse(java.io.File file)
           throws java.io.IOException
Throws:
java.io.IOException

stripTagsOut

public java.lang.String stripTagsOut(java.lang.String str)

createDoc

public org.apache.lucene.document.Document createDoc(java.lang.String str)
Creates empty doc from a str of form: FBIS3-1


getDocuments

public java.util.ArrayList getDocuments()