Package in.cdac.medinfo.csnotk.csnolib.factory

## Class IndexReaderFactory

- java.lang.Object
- - in.cdac.medinfo.csnotk.csnolib.factory.IndexReaderFactory

-     public class IndexReaderFactory
      extends java.lang.Object

  Author:
    root Factory implementation of IndexReader Factory method implementation for IndexReader for getting singleton object for IndexReader to read index from given directory

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `finalize()` |
    `org.apache.lucene.index.IndexReader` | `getIndexReader​(java.lang.String refsetId)` | Returns unique singleton `IndexReader` object.
    `static IndexReaderFactory` | `getInstance()` | Returns singleton `IndexReaderFactory` object.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static IndexReaderFactory getInstance()

      Returns singleton `IndexReaderFactory` object.

    - #### getIndexReader

          public org.apache.lucene.index.IndexReader getIndexReader​(java.lang.String refsetId)
                                                             throws java.io.IOException

      Returns unique singleton `IndexReader` object.
      Parameters:
        `refsetId` - Identifier of Refset/Indexed Directory
      Returns:
        instance of `IndexReader` respective to refsetId/ indexed dir.
      Throws:
        `java.io.IOException` - if any error occurs while processing.

    - #### finalize

          public void finalize()