org.sakaiproject.search.component.adapter.contenthosting
Class BaseContentDigester

java.lang.Object
  extended by org.sakaiproject.search.component.adapter.contenthosting.BaseContentDigester
All Implemented Interfaces:
ContentDigester
Direct Known Subclasses:
HtmlContentDigester, PDFContentDigester, PoiContentDigester, PPTContentDigester, SanslanContentDigester, TikaContentDigester, XLContentDigester

public abstract class BaseContentDigester
extends Object
implements ContentDigester

Author:
ieb

Field Summary
protected  int maxDigestSize
           
 
Constructor Summary
BaseContentDigester()
           
 
Method Summary
 boolean accept(String mimeType)
          Can the mime type be handled by this digester
 void destroy()
           
 ContentHostingContentProducer getContentProducer()
           
 int getMaxDigestSize()
           
 Map getMimeTypes()
           
 void init()
           
 void setContentProducer(ContentHostingContentProducer contentProducer)
           
 void setMaxDigestSize(int maxDigestSize)
           
 void setMimeTypes(Map mimeTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.search.component.adapter.contenthosting.ContentDigester
getContent, getContentReader
 

Field Detail

maxDigestSize

protected int maxDigestSize
Constructor Detail

BaseContentDigester

public BaseContentDigester()
Method Detail

init

public void init()

destroy

public void destroy()

accept

public boolean accept(String mimeType)
Description copied from interface: ContentDigester
Can the mime type be handled by this digester

Specified by:
accept in interface ContentDigester
Returns:

getMimeTypes

public Map getMimeTypes()
Returns:
Returns the mimeTypes.

setMimeTypes

public void setMimeTypes(Map mimeTypes)
Parameters:
mimeTypes - The mimeTypes to set.

getContentProducer

public ContentHostingContentProducer getContentProducer()
Returns:
Returns the contentProducer.

setContentProducer

public void setContentProducer(ContentHostingContentProducer contentProducer)
Parameters:
contentProducer - The contentProducer to set.

getMaxDigestSize

public int getMaxDigestSize()
Returns:
Returns the maxDigestSize.

setMaxDigestSize

public void setMaxDigestSize(int maxDigestSize)
Parameters:
maxDigestSize - The maxDigestSize to set.


Copyright © 2003-2012 Sakai Project. All Rights Reserved.