Package org.nuxeo.ecm.core.blob
Class BlobWriteContext
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.BlobWriteContext
-
public class BlobWriteContext extends Object
Context available when a blob is written.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description BlobContext
blobContext
protected Path
file
Supplier<String>
keyComputer
KeyStrategy
keyStrategy
KeyStrategy.WriteObserver
writeObserver
-
Constructor Summary
Constructors Constructor Description BlobWriteContext(BlobContext blobContext, KeyStrategy.WriteObserver writeObserver, Supplier<String> keyComputer, KeyStrategy keyStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobWriteContext
copyWithKey(String key)
BlobWriteContext
copyWithNoWriteObserverAndKey(String key)
Path
getFile()
String
getKey()
InputStream
getStream()
void
setFile(Path file)
boolean
useDeDuplication()
-
-
-
Field Detail
-
blobContext
public final BlobContext blobContext
-
writeObserver
public final KeyStrategy.WriteObserver writeObserver
-
keyStrategy
public final KeyStrategy keyStrategy
-
file
protected Path file
-
-
Constructor Detail
-
BlobWriteContext
public BlobWriteContext(BlobContext blobContext, KeyStrategy.WriteObserver writeObserver, Supplier<String> keyComputer, KeyStrategy keyStrategy)
-
-
Method Detail
-
copyWithKey
public BlobWriteContext copyWithKey(String key)
-
copyWithNoWriteObserverAndKey
public BlobWriteContext copyWithNoWriteObserverAndKey(String key)
-
useDeDuplication
public boolean useDeDuplication()
-
getKey
public String getKey()
-
setFile
public void setFile(Path file)
-
getFile
public Path getFile()
-
getStream
public InputStream getStream() throws IOException
- Throws:
IOException
-
-