fr.paris.lutece.plugins.jcr.service.search
Class LazyIndexedContentReader

java.lang.Object
  extended by java.io.Reader
      extended by fr.paris.lutece.plugins.jcr.service.search.LazyIndexedContentReader
All Implemented Interfaces:
Closeable, Readable

public class LazyIndexedContentReader
extends Reader

Implementation of a lazy reader for indexed content (such as PDF). The file content is indexed and parsed only when needed.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
LazyIndexedContentReader(fr.paris.lutece.plugins.lucene.service.indexer.IFileIndexer indexer, InputStream is)
           
 
Method Summary
 void close()
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyIndexedContentReader

public LazyIndexedContentReader(fr.paris.lutece.plugins.lucene.service.indexer.IFileIndexer indexer,
                                InputStream is)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException


Copyright © 2014 Mairie de Paris. All Rights Reserved.