Class FileInfo
- java.lang.Object
-
- com.google.appengine.api.blobstore.FileInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable Object obj)StringgetContentType()Returns the MIME Content-Type provided in the HTTP header during upload of this Blob.DategetCreation()Returns the time and date the blob was upload.StringgetFilename()Returns the file included in the Content-Disposition HTTP header during upload of this Blob.@Nullable StringgetGsObjectName()Returns the name of the file written to Google Cloud Storage or null if the file was not uploaded to Google Cloud Storage.StringgetMd5Hash()Returns the md5Hash of this Blob.longgetSize()Returns the size in bytes of this Blob.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
FileInfo
public FileInfo(String contentType, Date creation, String filename, long size, String md5Hash, @Nullable String gsObjectName)
Creates aFileInfoby providing the associated metadata. This is done by the API on the developer's behalf.- Parameters:
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 name of the file written to Google Cloud Storage or null if the file was not uploaded to Google Cloud Storage.
-
-
Method Detail
-
getContentType
public String getContentType()
Returns the MIME Content-Type provided in the HTTP header during upload of this Blob.
-
getCreation
public Date getCreation()
Returns the time and date the blob was upload.
-
getFilename
public String 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
public String getMd5Hash()
Returns the md5Hash of this Blob.
-
getGsObjectName
public @Nullable String getGsObjectName()
Returns the name of the file written to Google Cloud Storage or null if the file was not uploaded to Google Cloud Storage. This property is only available for BlobInfos returned by getUploadedBlobInfos(), as its value is not persisted in the Datastore. Any attempt to access this property on other BlobInfos will return null.
-
-