fr.paris.lutece.plugins.lucene.service.indexer
Class TikaIndexer

java.lang.Object
  extended by fr.paris.lutece.plugins.lucene.service.indexer.TikaIndexer
All Implemented Interfaces:
IFileIndexer

public class TikaIndexer
extends java.lang.Object
implements IFileIndexer

Wraps a tika indexer, such as OfficeParser


Constructor Summary
TikaIndexer()
           
 
Method Summary
 java.lang.String getContentToIndex(java.io.InputStream is)
          Indexes the inputStream content.
 void setParser(org.apache.tika.parser.Parser parser)
          Sets the parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TikaIndexer

public TikaIndexer()
Method Detail

setParser

public void setParser(org.apache.tika.parser.Parser parser)
Sets the parse

Parameters:
parser - the parser

getContentToIndex

public java.lang.String getContentToIndex(java.io.InputStream is)
Indexes the inputStream content. The InputStream is closed within this method.

Specified by:
getContentToIndex in interface IFileIndexer
Parameters:
is - input stream.
Returns:
the content to index


Copyright © 2010 Mairie de Paris. All Rights Reserved.