Interface BlobStorage
public interface BlobStorage
BlobStorage provide an abstraction over the storage of blob
content. For storing blob metadata, see BlobInfoStorage.-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteBlob(com.google.appengine.api.blobstore.BlobKey blobKey) Remove both the content and the metadata for the specified blob.fetchBlob(com.google.appengine.api.blobstore.BlobKey blobKey) Fetch the contents of the specified blob.booleanhasBlob(com.google.appengine.api.blobstore.BlobKey blobKey) storeBlob(com.google.appengine.api.blobstore.BlobKey blobKey) Store the contents of the specified blob.
-
Method Details
-
hasBlob
boolean hasBlob(com.google.appengine.api.blobstore.BlobKey blobKey) - Returns:
- true if content is found for the specified blob.
-
storeBlob
Store the contents of the specified blob. The contents should be written to the returnedOutputStream, and the blob content may not appear until that stream is closed.- Throws:
IOException
-
fetchBlob
Fetch the contents of the specified blob.- Throws:
IOException
-
deleteBlob
Remove both the content and the metadata for the specified blob.- Throws:
IOException
-