@Immutable @Loggable(value=1) public final class ReOcket extends Object implements Ocket
Ocket.Text
Modifier and Type | Method and Description |
---|---|
Bucket |
bucket()
Get bucket we're in.
|
int |
compareTo(Ocket okt) |
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 ReOcket(Ocket okt)
okt
- Ocket we're in@RetryOnFailure(verbose=false) public com.amazonaws.services.s3.model.ObjectMetadata meta() throws IOException
Ocket
meta
in interface Ocket
IOException
- If fails@RetryOnFailure(verbose=false) public boolean exists() throws IOException
Ocket
exists
in interface Ocket
IOException
- If fails@RetryOnFailure(verbose=false) public void read(OutputStream output) throws IOException
Ocket
read
in interface Ocket
output
- Where to writeIOException
- If fails@RetryOnFailure(verbose=false) public void write(InputStream input, com.amazonaws.services.s3.model.ObjectMetadata meta) throws IOException
Ocket
write
in interface Ocket
input
- Where to get contentmeta
- Metadata to saveIOException
- If failspublic int compareTo(Ocket okt)
compareTo
in interface Comparable<Ocket>
Copyright © 2012–2014 jcabi.com. All rights reserved.