public ExcerptProvider createExcerptProvider(Query query) throws IOException
   {
      ExcerptProvider ep;
      try
      {
         ep = excerptProviderClass.newInstance();
      }
      catch (Exception e)
      {
         throw Util.createIOException(e);
      }
      ep.init(query, this);
      return ep;
   }
public ExcerptProvider createExcerptProvider ( Query query ) throws IOException { ExcerptProvider ep ; try { ep = excerptProviderClass . newInstance ( ) ; } catch ( Exception e ) { throw Util . createIOException ( e ) ; } ep . init ( query , this ) ; return ep ; }
Creates an excerpt provider for the given <code>query</code>.

@param query
the query.
@return an excerpt provider for the given <code>query</code>.
@throws IOException
if the provider cannot be created.