public interface BlobManager
Blobs, through internally-registered BlobProviders.| Modifier and Type | Interface and Description | 
|---|---|
| static class  | BlobManager.UsageHintHints for returning  URIs appropriate for the expected usage. | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,URI> | getAvailableConversions(Blob blob,
                       BlobManager.UsageHint hint)Gets a map of available MIME type conversions and corresponding  URIfor a blob. | 
| BlobProvider | getBlobProvider(Blob blob)Gets the blob provider for the given blob. | 
| BlobProvider | getBlobProvider(String id)Gets the blob provider with the given id. | 
| Map<String,BlobProvider> | getBlobProviders()Get the map of blob providers | 
| InputStream | getStream(Blob blob)INTERNAL - Gets an  InputStreamfor the data of a managed blob. | 
| InputStream | getThumbnail(Blob blob)Gets an  InputStreamfor a thumbnail of a blob. | 
| URI | getURI(Blob blob,
      BlobManager.UsageHint hint,
      javax.servlet.http.HttpServletRequest servletRequest)Gets an  URIfor the content of a blob. | 
BlobProvider getBlobProvider(String id)
id - the blob provider idBlobProvider getBlobProvider(Blob blob)
InputStream getStream(Blob blob) throws IOException
InputStream for the data of a managed blob. Used by internal implementations, regular
 callers should call Blob.getStream().blob - the blobIOExceptionInputStream getThumbnail(Blob blob) throws IOException
InputStream for a thumbnail of a blob.
 
 Like all InputStream, the result must be closed when done with it to avoid resource leaks.
blob - the blobIOExceptionURI getURI(Blob blob, BlobManager.UsageHint hint, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
URI for the content of a blob.blob - the blobhint - BlobManager.UsageHintservletRequest - the servlet request, or nullURI, or null if none availableIOExceptionMap<String,URI> getAvailableConversions(Blob blob, BlobManager.UsageHint hint) throws IOException
URI for a blob.URI, which may be emptyIOExceptionMap<String,BlobProvider> getBlobProviders()
Copyright © 2018 Nuxeo. All rights reserved.