public abstract class AbstractContentHashWorker extends org.gytheio.content.AbstractContentWorker implements ContentHashWorker
FRAMEWORK_PROPERTY_NAME, FRAMEWORK_PROPERTY_VERSION, sourceContentReferenceHandler, versionDetailsString, versionStringHASH_ALGORITHM_MD5, HASH_ALGORITHM_SHA_256, HASH_ALGORITHM_SHA_512, RESULT_DETAIL_HEX_ENCODED_VALUE| Constructor and Description |
|---|
AbstractContentHashWorker() |
| Modifier and Type | Method and Description |
|---|---|
List<org.gytheio.content.ContentWorkResult> |
generateHashes(List<org.gytheio.content.ContentReference> sources,
String hashAlgorithm)
Generates a hash value for the given content reference using the given algorithm
|
abstract String |
generateHashInternal(InputStream sourceFile,
String hashAlgorithm)
Computes the hash value for the given input stream using the given algorithm
|
void |
initialize() |
String |
toString() |
getProperties, getVersionDetailsString, getVersionString, initializeVersionDetailsString, initializeVersionString, isAvailable, loadProperties, setIsAvailable, setSourceContentReferenceHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisAlgorithmSupportedpublic void initialize()
initialize in class org.gytheio.content.AbstractContentWorkerpublic List<org.gytheio.content.ContentWorkResult> generateHashes(List<org.gytheio.content.ContentReference> sources, String hashAlgorithm) throws org.gytheio.content.ContentIOException, InterruptedException, ContentHashException
ContentHashWorkergenerateHashes in interface ContentHashWorkerorg.gytheio.content.ContentIOExceptionInterruptedExceptionContentHashExceptionpublic abstract String generateHashInternal(InputStream sourceFile, String hashAlgorithm) throws org.gytheio.content.ContentIOException, InterruptedException, ContentHashException
sourceFile - hashAlgorithm - org.gytheio.content.ContentIOExceptionInterruptedExceptionContentHashExceptionCopyright © 2018 Alfresco Software. All rights reserved.