|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.noderunner.amazon.s3.S3Object
public class S3Object
A representation of a single object stored in S3.
Constructor Summary | |
---|---|
S3Object(byte[] data)
Constructs a new S3Object. |
|
S3Object(byte[] data,
Headers metadata)
Constructs a new S3Object. |
|
S3Object(String data)
Constructs a new S3Object; data is converted to bytes. |
Method Summary | |
---|---|
byte[] |
getData()
Returns data. |
int |
getLength()
Returns the length of data. |
Headers |
getMetadata()
Returns metadata, unmodifiable. |
void |
setMetadata(Headers metadata)
Sets the metadata. |
String |
toString()
Returns a debug string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public S3Object(byte[] data, Headers metadata)
data
- metadata
- public S3Object(byte[] data)
public S3Object(String data)
Method Detail |
---|
public byte[] getData()
public int getLength()
public Headers getMetadata()
public void setMetadata(Headers metadata)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |