Package org.nuxeo.ecm.core.blob
Interface ManagedBlob
- 
- All Superinterfaces:
 Blob
- All Known Implementing Classes:
 BinaryBlob,SimpleManagedBlob
public interface ManagedBlob extends Blob
Interface forBlobs created and managed by theBlobManager.- Since:
 - 7.2
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FilegetFile()If this blob is backed by an actual file, returns it.StringgetKey()Gets the stored representation of this blob.StringgetProviderId()Gets the id of theBlobProvidermanaging this blob.default InputStreamgetStream()Gets anInputStreamfor the data of this blob.- 
Methods inherited from interface org.nuxeo.ecm.core.api.Blob
getByteArray, getCloseableFile, getCloseableFile, getDigest, getDigestAlgorithm, getEncoding, getFilename, getLength, getMimeType, getString, setDigest, setDigestAlgorithm, setEncoding, setFilename, setMimeType, transferTo, transferTo 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getProviderId
String getProviderId()
Gets the id of theBlobProvidermanaging this blob.- Returns:
 - the blob provider id
 
 
- 
getKey
String getKey()
Gets the stored representation of this blob.- Returns:
 - the stored representation
 
 
- 
getStream
default InputStream getStream() throws IOException
Description copied from interface:BlobGets anInputStreamfor the data of this blob.The contract of
Blobis that this method can be called several times and will correctly return a newInputStreameach time. In other words, several reads of theBlobcan be done.Like all
InputStream, the result must be closed when done with it to avoid resource leaks.- Specified by:
 getStreamin interfaceBlob- Returns:
 - the stream
 - Throws:
 IOException
 
 - 
 
 -