close

abstract override fun close()

Regular close interface, as provided by Java's AutoCloseable and Closeable interfaces.

Overridden here so that it can be made Polyglot-accessible.


open fun close(callback: CloseStreamCallback)

Closes the underlying compression stream, and dispatches the provided callback.

Note: This method cannot synthesize defaults for a no-parameter implementation, because it would collide with the close method provided by AutoCloseable.

Parameters

callback

Callback to dispatch when the stream is closed.


open fun close(callback: Value?)

Closes the underlying compression stream, and dispatches the provided callback.

This method variant works with Value as the callback type.

Parameters

callback

Callback to dispatch when the stream is closed.