@Immutable @Loggable(value=1) public final class CdOcket extends Object implements Ocket
Ocket.Empty, 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. 
 | 
String | 
toString()  | 
void | 
write(InputStream input,
     com.amazonaws.services.s3.model.ObjectMetadata meta)
Write new content to the object. 
 | 
public CdOcket(Ocket okt)
okt - Ocket original@Cacheable public com.amazonaws.services.s3.model.ObjectMetadata meta() throws IOException
OcketThrows OcketNotFoundException if this object
 doesn't exist in S3 bucket.
meta in interface OcketIOException - If fails@Cacheable public boolean exists() throws IOException
Ocketexists in interface OcketIOException - If failspublic void read(OutputStream output) throws IOException
OcketThrows OcketNotFoundException if this object
 doesn't exist in S3 bucket.
read 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 save. Should contains input length for large
  object, otherwise multi-part uploads won't be possible.IOException - If failspublic int compareTo(Ocket ocket)
compareTo in interface Comparable<Ocket>Copyright © 2012–2017 jcabi.com. All rights reserved.