Class BlobInfo
java.lang.Object
com.google.appengine.api.blobstore.BlobInfo
- All Implemented Interfaces:
Serializable
BlobInfo
contains metadata about a blob. This metadata is gathered by
parsing the HTTP headers included in the blob upload.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBlobInfo
(BlobKey blobKey, String contentType, Date creation, String filename, long size, String md5Hash) BlobInfo
(BlobKey blobKey, String contentType, Date creation, String filename, long size, String md5Hash, @Nullable String gsObjectName) Creates aBlobInfo
by providing theBlobKey
and all associated metadata. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns theBlobKey
of the Blob thisBlobInfo
describes.Returns the MIME Content-Type provided in the HTTP header during upload of this Blob.Returns the time and date the blob was upload.Returns the file included in the Content-Disposition HTTP header during upload of this Blob.@Nullable String
Returns the object name of this Blob, if it is stored in Google Cloud Storage, in the form/[bucket-name]/[object-name]
.Returns the md5Hash of this Blob.long
getSize()
Returns the size in bytes of this Blob.int
hashCode()
toString()
-
Constructor Details
-
BlobInfo
public BlobInfo(BlobKey blobKey, String contentType, Date creation, String filename, long size, String md5Hash, @Nullable String gsObjectName) Creates aBlobInfo
by providing theBlobKey
and all associated metadata. This is typically done by the API on the developer's behalf.- Parameters:
blobKey
- theBlobKey
of the Blob.contentType
- the MIME Content-Type provided in the HTTP header during upload of this Blob.creation
- the time and date the blob was uploaded.filename
- the file included in the Content-Disposition HTTP header during upload of this Blob.size
- the size in bytes of this Blob.md5Hash
- the md5Hash of this Blob.gsObjectName
- the object name of this Blob, if it is stored on Google Cloud Storage, null otherwise.
-
BlobInfo
-
BlobInfo
-
-
Method Details
-
getBlobKey
Returns theBlobKey
of the Blob thisBlobInfo
describes. -
getContentType
Returns the MIME Content-Type provided in the HTTP header during upload of this Blob. -
getCreation
Returns the time and date the blob was upload. -
getFilename
Returns the file included in the Content-Disposition HTTP header during upload of this Blob. -
getSize
public long getSize()Returns the size in bytes of this Blob. -
getMd5Hash
Returns the md5Hash of this Blob. -
getGsObjectName
Returns the object name of this Blob, if it is stored in Google Cloud Storage, in the form/[bucket-name]/[object-name]
. Returnsnull
if the Blob is stored in Blobstorage. -
equals
-
hashCode
public int hashCode() -
toString
-