Package org.nuxeo.ecm.core.blob
Class KeyStrategyDigest.WriteObserverDigest
java.lang.Object
org.nuxeo.ecm.core.blob.KeyStrategyDigest.WriteObserverDigest
- All Implemented Interfaces:
KeyStrategy.WriteObserver
- Enclosing class:
- KeyStrategyDigest
public static class KeyStrategyDigest.WriteObserverDigest
extends Object
implements KeyStrategy.WriteObserver
Write observer computing a digest. The final digest is made available to the key consumer.
- Since:
- 11.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
done()
Must be called when writes to the wrapped stream are done, to complete observation.wrap
(OutputStream out) Wraps the given stream to observe it.
-
Field Details
-
messageDigest
-
keyConsumer
-
dos
-
-
Constructor Details
-
WriteObserverDigest
-
-
Method Details
-
wrap
Description copied from interface:KeyStrategy.WriteObserver
Wraps the given stream to observe it.- Specified by:
wrap
in interfaceKeyStrategy.WriteObserver
-
done
public void done()Description copied from interface:KeyStrategy.WriteObserver
Must be called when writes to the wrapped stream are done, to complete observation.- Specified by:
done
in interfaceKeyStrategy.WriteObserver
-