org.alfresco.repo.content.transform
Class TikaSpringConfiguredContentTransformer
java.lang.Object
org.alfresco.repo.content.transform.ContentTransformerHelper
org.alfresco.repo.content.transform.AbstractContentTransformer2
org.alfresco.repo.content.transform.TikaPoweredContentTransformer
org.alfresco.repo.content.transform.TikaSpringConfiguredContentTransformer
- All Implemented Interfaces:
- ContentWorker, ContentTransformer
public class TikaSpringConfiguredContentTransformer
- extends TikaPoweredContentTransformer
A Content Extractor for XML, HTML and Text, which makes
use of Apache Tika, and allows the selection of the
Tika parser to be sprung-in.
Using spring, you list the Tika parser to use, which
may well not be a standard Tika one. You should specify
either a spring created bean, or a parser class name.
Method Summary |
protected org.apache.tika.parser.Parser |
getParser()
Returns the Tika parser |
void |
setTikaParser(org.apache.tika.parser.Parser tikaParser)
Injects the Tika parser to use |
void |
setTikaParserName(java.lang.String className)
Injects the name of the Tika parser to use |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TikaSpringConfiguredContentTransformer
public TikaSpringConfiguredContentTransformer()
setTikaParserName
public void setTikaParserName(java.lang.String className)
- Injects the name of the Tika parser to use
- Parameters:
className
-
setTikaParser
public void setTikaParser(org.apache.tika.parser.Parser tikaParser)
- Injects the Tika parser to use
- Parameters:
parser
-
getParser
protected org.apache.tika.parser.Parser getParser()
- Returns the Tika parser
- Specified by:
getParser
in class TikaPoweredContentTransformer
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.