@Immutable @Loggable(value=1) public final class CdOcket extends Object implements Ocket
Ocket.Text| Modifier and Type | Method and Description |
|---|---|
Bucket |
bucket()
Get bucket we're in.
|
int |
compareTo(Ocket ocket) |
boolean |
exists()
Check whether this S3 object exists.
|
String |
key()
Get object key.
|
com.amazonaws.services.s3.model.ObjectMetadata |
meta()
Object metadata.
|
void |
read(OutputStream output)
Read content.
|
void |
write(InputStream input,
com.amazonaws.services.s3.model.ObjectMetadata meta)
Write new content to the object.
|
public CdOcket(Ocket okt)
okt - Ocket originalpublic com.amazonaws.services.s3.model.ObjectMetadata meta()
throws IOException
Ocketmeta in interface OcketIOException - If fails@Cacheable public boolean exists() throws IOException
Ocketexists in interface OcketIOException - If failspublic void read(OutputStream output) throws IOException
Ocketread in interface Ocketoutput - Where to writeIOException - If fails@Cacheable.FlushAfter public void write(InputStream input, com.amazonaws.services.s3.model.ObjectMetadata meta) throws IOException
Ocketwrite in interface Ocketinput - Where to get contentmeta - Metadata to saveIOException - If failspublic int compareTo(Ocket ocket)
compareTo in interface Comparable<Ocket>Copyright © 2012–2014 jcabi.com. All rights reserved.