DLESE Tools
v1.6.0

org.dlese.dpc.index.reader
Class SimpleFileIndexingServiceDocReader

java.lang.Object
  extended by org.dlese.dpc.index.reader.DocReader
      extended by org.dlese.dpc.index.reader.FileIndexingServiceDocReader
          extended by org.dlese.dpc.index.reader.SimpleFileIndexingServiceDocReader
All Implemented Interfaces:
Serializable

public class SimpleFileIndexingServiceDocReader
extends FileIndexingServiceDocReader
implements Serializable

A bean meant for subclassing that provides a basic implementataion of the FileIndexingServiceDocReader interface.

Author:
John Weatherley
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.dlese.dpc.index.reader.DocReader
conf, doc, resultDoc, score
 
Constructor Summary
SimpleFileIndexingServiceDocReader()
          Constructor for the SimpleFileIndexingServiceDocReader object
SimpleFileIndexingServiceDocReader(org.apache.lucene.document.Document doc)
          Constructor that may be used programatically to wrap a reader around a Lucene Document that was created by a FileIndexingServiceWriter.
 
Method Summary
 String getReaderType()
          Gets the String 'ItemDocReader,' which is the key that describes this reader type.
 void init()
          Init method does nothing.
 
Methods inherited from class org.dlese.dpc.index.reader.FileIndexingServiceDocReader
fileExists, getDateFileWasIndexed, getDateFileWasIndexedString, getDateStamp, getDeleted, getDocDir, getDocsource, getDocsourceEncoded, getDoctype, getFile, getFileExists, getFileName, getFullContent, getFullContentEncodedAs, getLastModified, getLastModifiedAsUTC, getLastModifiedString, isDeleted, prtln, prtlnErr, setDebug
 
Methods inherited from class org.dlese.dpc.index.reader.DocReader
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileIndexingServiceDocReader

public SimpleFileIndexingServiceDocReader()
Constructor for the SimpleFileIndexingServiceDocReader object


SimpleFileIndexingServiceDocReader

public SimpleFileIndexingServiceDocReader(org.apache.lucene.document.Document doc)
Constructor that may be used programatically to wrap a reader around a Lucene Document that was created by a FileIndexingServiceWriter.

Parameters:
doc - A Lucene Document.
See Also:
FileIndexingServiceWriter
Method Detail

init

public void init()
Init method does nothing.

Specified by:
init in class DocReader

getReaderType

public String getReaderType()
Gets the String 'ItemDocReader,' which is the key that describes this reader type. This may be used in (Struts) beans to determine which type of reader is available for a given search result and thus what data is available for display in the UI. The reader type determines which getter methods are available.

Specified by:
getReaderType in class DocReader
Returns:
The String 'ItemDocReader'.

DLESE Tools
v1.6.0