Package com.jcabi.s3
Class Ocket.Empty
java.lang.Object
com.jcabi.s3.Ocket.Empty
- All Implemented Interfaces:
Ocket,Comparable<Ocket>
- Enclosing interface:
- Ocket
Ocket with no content at all.
- Since:
- 0.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.s3.Ocket
Ocket.Empty, Ocket.Text -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucket()Get bucket we're in.intbooleanexists()Check whether this S3 object exists.key()Get object key.software.amazon.awssdk.services.s3.model.HeadObjectResponsemeta()Object metadata.voidread(OutputStream output) Read content.voidwrite(InputStream input, software.amazon.awssdk.services.s3.model.HeadObjectResponse meta) Write new content to the object.
-
Constructor Details
-
Empty
public Empty()
-
-
Method Details
-
bucket
Description copied from interface:OcketGet bucket we're in. -
key
Description copied from interface:OcketGet object key. -
meta
public software.amazon.awssdk.services.s3.model.HeadObjectResponse meta()Description copied from interface:OcketObject metadata.Throws
OcketNotFoundExceptionif this object doesn't exist in S3 bucket. -
exists
public boolean exists()Description copied from interface:OcketCheck whether this S3 object exists. -
read
Description copied from interface:OcketRead content.Throws
OcketNotFoundExceptionif this object doesn't exist in S3 bucket. -
write
public void write(InputStream input, software.amazon.awssdk.services.s3.model.HeadObjectResponse meta) Description copied from interface:OcketWrite new content to the object. -
compareTo
- Specified by:
compareToin interfaceComparable<Ocket>
-