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 Type
    Method
    Description
    void
    deleteBlob(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.
    boolean
    hasBlob(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

      OutputStream storeBlob(com.google.appengine.api.blobstore.BlobKey blobKey) throws IOException
      Store the contents of the specified blob. The contents should be written to the returned OutputStream, and the blob content may not appear until that stream is closed.
      Throws:
      IOException
    • fetchBlob

      InputStream fetchBlob(com.google.appengine.api.blobstore.BlobKey blobKey) throws IOException
      Fetch the contents of the specified blob.
      Throws:
      IOException
    • deleteBlob

      void deleteBlob(com.google.appengine.api.blobstore.BlobKey blobKey) throws IOException
      Remove both the content and the metadata for the specified blob.
      Throws:
      IOException