StreamObject

Handle on an S3 object containing an InputStream over the contents of the remote object.

The wrapped InputStream must be closed when the caller is done with it.

The stream wrapped by this object may be closed by using this type's close method.

Author

Elizabeth Paige Harper https://github.com/Foxcapades

Since

v0.1.0

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun delete()
abstract fun delete(action: DeleteParams.() -> Unit)
abstract fun delete(params: DeleteParams)

Deletes the current object.

Link copied to clipboard
abstract fun exists(): Boolean
abstract fun exists(action: ObjectExistsParams.() -> Unit): Boolean
abstract fun exists(params: ObjectExistsParams): Boolean

Tests whether this object still exists.

Link copied to clipboard
abstract fun stat(): ObjectMeta?
abstract fun stat(action: ObjectStatParams.() -> Unit): ObjectMeta?
abstract fun stat(params: ObjectStatParams): ObjectMeta?

Fetches metadata for this object.

Properties

Link copied to clipboard
abstract val baseName: String

Returns the base name of this object, or in other words, the last segment of the path.

Link copied to clipboard
abstract val bucket: S3Bucket
Link copied to clipboard
abstract val dirName: String

Returns the 'directory' parent of this object.

Link copied to clipboard
abstract val eTag: String

Object ETag value.

Link copied to clipboard
abstract val headers: Headers
Link copied to clipboard

Object last modified/created timestamp.

Link copied to clipboard
abstract val path: String

Path/key to the object this handle represents.

Link copied to clipboard
abstract val region: String?
Link copied to clipboard
abstract val stream: InputStream

Input stream over the contents of the remote object.

Link copied to clipboard
abstract val tags: ObjectTagContainer

Object tag management container.