Class ObjectInfo
java.lang.Object
com.codename1.backend.storage.ObjectInfo
- Direct Known Subclasses:
S3.ObjectInfo
What
ObjectStorage.headObject(String, String) reports about one object.-
Constructor Summary
ConstructorsConstructorDescriptionObjectInfo(String key, long size, String contentType, String etag, String lastModified) An object's metadata. -
Method Summary
-
Constructor Details
-
ObjectInfo
-
-
Method Details
-
getKey
-
getSize
public long getSize()The length in bytes, or -1 when the provider did not report it. -
getContentType
-
getEtag
The provider's entity tag, unquoted. Its format is the provider's own: an MD5 for a simple S3 upload, an opaque value for Azure and GCS. -
getLastModified
The modification time exactly as the provider sent it: an HTTP date for S3 and Azure, an RFC 3339 timestamp for GCS. Not parsed, so nothing is lost in a conversion the caller may not want.
-