public class DataCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DataCache.DocumentData
This class represents everything we need to know about a document that's getting passed from the
getDocumentVersions() phase to the processDocuments() phase.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected java.util.Map<java.lang.String,DataCache.DocumentData> |
cacheData |
| Constructor and Description |
|---|
DataCache()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
addData(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
java.lang.String documentIdentifier,
java.lang.String contentType,
java.io.InputStream dataStream)
Add binary data entry into the cache.
|
void |
deleteData(java.lang.String documentIdentifier)
Delete specified item of data.
|
java.lang.String |
getContentType(java.lang.String documentIdentifier)
Get the content type.
|
java.io.InputStream |
getData(java.lang.String documentIdentifier)
Fetch binary data entry from the cache.
|
long |
getDataLength(java.lang.String documentIdentifier)
Fetch binary data length.
|
public static final java.lang.String _rcsid
protected java.util.Map<java.lang.String,DataCache.DocumentData> cacheData
public long addData(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
java.lang.String documentIdentifier,
java.lang.String contentType,
java.io.InputStream dataStream)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
documentIdentifier - is the document identifier (url).contentType - is the content type for the data.dataStream - is the data stream.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionpublic long getDataLength(java.lang.String documentIdentifier)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
documentIdentifier - is the document identifier.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.io.InputStream getData(java.lang.String documentIdentifier)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
documentIdentifier - is the document identifier (url).org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.lang.String getContentType(java.lang.String documentIdentifier)
documentIdentifier - is the document identifier.public void deleteData(java.lang.String documentIdentifier)
documentIdentifier - is the document identifier (url).