org.sakaiproject.search.component.adapter.contenthosting
Class DefaultContentDigester
java.lang.Object
org.sakaiproject.search.component.adapter.contenthosting.DefaultContentDigester
- All Implemented Interfaces:
- ContentDigester
- Direct Known Subclasses:
- DefaultFullContentDigester
public class DefaultContentDigester
- extends Object
- implements ContentDigester
- Author:
- ieb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultContentDigester
public DefaultContentDigester()
init
public void init()
getContent
public String getContent(org.sakaiproject.content.api.ContentResource contentResource)
- Specified by:
getContent in interface ContentDigester
- Returns:
isBinary
public boolean isBinary(org.sakaiproject.content.api.ContentResource contentResource)
- Parameters:
contentResource -
- Returns:
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:
getContentReader
public Reader getContentReader(org.sakaiproject.content.api.ContentResource contentResource)
- Specified by:
getContentReader in interface ContentDigester
- Returns:
getMaxDigestSize
public int getMaxDigestSize()
- Returns:
- the maxDigestSize
setMaxDigestSize
public void setMaxDigestSize(int maxDigestSize)
- Parameters:
maxDigestSize - the maxDigestSize to set
Copyright © 2003-2012 Sakai Project. All Rights Reserved.