DittoAttachment

class DittoAttachment : Closeable

Represents an attachment and can be used to insert the associated attachment into a document at a specific key.

Parameters

metadata

the attachment's metadata.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun copyToPath(path: String)

Copies the attachment to the specified file path.

Link copied to clipboard
protected fun finalize()

Close before garbage collection.

Link copied to clipboard
fun getData(): ByteArray

Returns the attachment's data as a ByteArray.

Link copied to clipboard
fun getInputStream(): FileInputStream

Returns an input stream for the attachment file.

Link copied to clipboard
fun getLength(): BigInteger

BigInteger version of len for Java compatibility.

Properties

Link copied to clipboard
val id: String

The attachment's ID.

Link copied to clipboard
val len: ULong
Link copied to clipboard
val metadata: Map<String, String>