fr.paris.lutece.plugins.jcr.service.search
Class LazyIndexedContentReader
java.lang.Object
java.io.Reader
fr.paris.lutece.plugins.jcr.service.search.LazyIndexedContentReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class LazyIndexedContentReader
- extends java.io.Reader
Implementation of a lazy reader for indexed content (such as PDF).
The file content is indexed and parsed only when needed.
| Fields inherited from class java.io.Reader |
lock |
|
Constructor Summary |
LazyIndexedContentReader(fr.paris.lutece.plugins.indexer.service.IFileIndexer indexer,
java.io.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 |
LazyIndexedContentReader
public LazyIndexedContentReader(fr.paris.lutece.plugins.indexer.service.IFileIndexer indexer,
java.io.InputStream is)
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Specified by:
close in class java.io.Reader
- Throws:
java.io.IOException
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Specified by:
read in class java.io.Reader
- Throws:
java.io.IOException
Copyright © 2009 Mairie de Paris. All Rights Reserved.