anl.aida.ae.lucene
Class CachedContentReader

java.lang.Object
  extended by anl.aida.ae.lucene.CachedContentReader
All Implemented Interfaces:
ReaderProducer

 class CachedContentReader
extends java.lang.Object
implements ReaderProducer


Constructor Summary
CachedContentReader()
           
 
Method Summary
 java.io.Reader getReader(org.apache.lucene.document.Document doc)
          Gets a reader to read content based on information in the doc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedContentReader

CachedContentReader()
Method Detail

getReader

public java.io.Reader getReader(org.apache.lucene.document.Document doc)
                         throws java.io.IOException
Description copied from interface: ReaderProducer
Gets a reader to read content based on information in the doc. For example, the content may be some fields in the document.

Specified by:
getReader in interface ReaderProducer
Parameters:
doc - the doc
Returns:
a reader to read content based on information in the doc.
Throws:
java.io.IOException - if there is a problem getting the reader