public class S3Object extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public S3Object(byte[] data, Headers metadata)
data
- metadata
- public S3Object(byte[] data)
public S3Object(String data)
Copyright © 2013. All Rights Reserved.