public interface DocumentBlobProvider
Modifier and Type | Method and Description |
---|---|
default ManagedBlob |
freezeVersion(ManagedBlob blob,
Document doc)
Returns a new managed blob pointing to a fixed version of the original blob.
|
default InputStream |
getConvertedStream(ManagedBlob blob,
String mimeType,
DocumentModel doc)
Gets an
InputStream for a conversion to the given MIME type. |
default ManagedBlob freezeVersion(ManagedBlob blob, Document doc) throws IOException
blob
- the original managed blobdoc
- the document that holds the blobnull
if no change is neededIOException
default InputStream getConvertedStream(ManagedBlob blob, String mimeType, DocumentModel doc) throws IOException
InputStream
for a conversion to the given MIME type.
Like all InputStream
, the result must be closed when done with it to avoid resource leaks.
blob
- the managed blobmimeType
- the MIME type to convert todoc
- the document that holds the blobnull
if no conversion is available for the given MIME typeIOException
Copyright © 2018 Nuxeo. All rights reserved.