public class FileInfo
extends java.lang.Object
FileInfo
contains metadata about an uploaded file. This metadata is
gathered by parsing the HTTP headers included in the file upload.Constructor and Description |
---|
FileInfo(java.lang.String contentType,
java.util.Date creation,
java.lang.String filename,
long size,
java.lang.String md5Hash,
java.lang.String gsObjectName)
Creates a
FileInfo by providing the associated metadata. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContentType()
Returns the MIME Content-Type provided in the HTTP header during upload of
this Blob.
|
java.util.Date |
getCreation()
Returns the time and date the blob was upload.
|
java.lang.String |
getFilename()
Returns the file included in the Content-Disposition HTTP header during
upload of this Blob.
|
java.lang.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.
|
java.lang.String |
getMd5Hash()
Returns the md5Hash of this Blob.
|
long |
getSize()
Returns the size in bytes of this Blob.
|
int |
hashCode() |
java.lang.String |
toString() |
public FileInfo(java.lang.String contentType, java.util.Date creation, java.lang.String filename, long size, java.lang.String md5Hash, java.lang.String gsObjectName)
FileInfo
by providing the associated metadata.
This is done by the API on the developer's behalf.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.public java.lang.String getContentType()
public java.util.Date getCreation()
public java.lang.String getFilename()
public long getSize()
public java.lang.String getMd5Hash()
public java.lang.String getGsObjectName()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object