|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.noderunner.amazon.s3.Entry
public class Entry
A structure representing a single object stored in S3.
Constructor Summary | |
---|---|
Entry(String key)
Constructs a new Entry. |
Method Summary | |
---|---|
int |
compareTo(Entry other)
Compares by key name. |
boolean |
equals(Object other)
Returns true if other is an entry with the same key. |
String |
getETag()
Returns the object's ETag, which can be used for conditional GETs. |
String |
getKey()
Returns the name of the object |
Date |
getLastModified()
The date at which the object was last modified. |
Owner |
getOwner()
Returns the object's owner |
long |
getSize()
Returns the size of the object in bytes. |
String |
getStorageClass()
The object's storage class |
int |
hashCode()
Calculates hash using the key. |
void |
setLastModified(Date lastModified)
Sets lastModified. |
void |
setOwner(Owner owner)
Sets owner. |
void |
setSize(long size)
Sets size. |
String |
toString()
Returns the key |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Entry(String key)
Method Detail |
---|
public void setLastModified(Date lastModified)
public Date getLastModified()
public String toString()
toString
in class Object
public String getKey()
public String getETag()
public void setOwner(Owner owner)
public Owner getOwner()
public void setSize(long size)
public long getSize()
public String getStorageClass()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Entry other)
compareTo
in interface Comparable<Entry>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |