public class MetaData extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
contentLength |
protected String |
eTag |
protected String |
lastModified |
protected Map<String,String> |
metaData |
protected String |
mimeType |
| Constructor and Description |
|---|
MetaData(String mimeType,
String lastModified,
String contentLength,
String eTag) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetaData(String key,
String value) |
String |
getContentLength()
The size of the object, in bytes
|
String |
getETag()
The MD5 checksum represented in a hex-encoded string
|
String |
getLastModified()
The last time the object was modified
|
Map<String,String> |
getMetaData()
The metadata associated with this object.
|
String |
getMimeType()
The MIME type of the object
|
void |
setMetaData(Map<String,String> metaData)
Set new metatdata for this object.
|
protected String mimeType
protected String contentLength
protected String eTag
protected String lastModified
public void setMetaData(Map<String,String> metaData)
setMetaData instead.metaData - The new metadatapublic String getLastModified()
public String getMimeType()
public String getContentLength()
public String getETag()
Copyright © 2020. All rights reserved.