Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

BlobStorage

Stay organized with collections Save and categorize content based on your preferences.
com.google.appengine.api.blobstore.dev

Interface BlobStorage



  • public interface BlobStorage
    BlobStorage provide an abstraction over the storage of blob content. For storing blob metadata, see BlobInfoStorage.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void deleteBlob(com.google.appengine.api.blobstore.BlobKey blobKey)
      Remove both the content and the metadata for the specified blob.
      java.io.InputStream fetchBlob(com.google.appengine.api.blobstore.BlobKey blobKey)
      Fetch the contents of the specified blob.
      boolean hasBlob(com.google.appengine.api.blobstore.BlobKey blobKey) 
      java.io.OutputStream storeBlob(com.google.appengine.api.blobstore.BlobKey blobKey)
      Store the contents of the specified blob.
    • Method Detail

      • hasBlob

        boolean hasBlob(com.google.appengine.api.blobstore.BlobKey blobKey)
        Returns:
        true if content is found for the specified blob.
      • storeBlob

        java.io.OutputStream storeBlob(com.google.appengine.api.blobstore.BlobKey blobKey)
                                throws java.io.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:
        java.io.IOException
      • fetchBlob

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

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