public class DataCache extends 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 String |
_rcsid |
protected Map<String,DataCache.DocumentData> |
cacheData |
| Constructor and Description |
|---|
DataCache()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
addData(IVersionActivity activities,
String documentIdentifier,
String contentType,
InputStream dataStream)
Add binary data entry into the cache.
|
void |
deleteData(String documentIdentifier)
Delete specified item of data.
|
String |
getContentType(String documentIdentifier)
Get the content type.
|
InputStream |
getData(String documentIdentifier)
Fetch binary data entry from the cache.
|
long |
getDataLength(String documentIdentifier)
Fetch binary data length.
|
public static final String _rcsid
protected Map<String,DataCache.DocumentData> cacheData
public long addData(IVersionActivity activities, String documentIdentifier, String contentType, InputStream dataStream) throws ManifoldCFException, ServiceInterruption
documentIdentifier - is the document identifier (url).contentType - is the content type for the data.dataStream - is the data stream.ManifoldCFExceptionServiceInterruptionpublic long getDataLength(String documentIdentifier) throws ManifoldCFException
documentIdentifier - is the document identifier.ManifoldCFExceptionpublic InputStream getData(String documentIdentifier) throws ManifoldCFException
documentIdentifier - is the document identifier (url).ManifoldCFExceptionpublic String getContentType(String documentIdentifier)
documentIdentifier - is the document identifier.public void deleteData(String documentIdentifier)
documentIdentifier - is the document identifier (url).