Class ListenableOutputStream<O extends OutputStream>

java.lang.Object
java.io.OutputStream
eu.cloudnetservice.utils.base.io.ListenableOutputStream<O>
Type Parameters:
O - the type of the wrapped output stream.
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public final class ListenableOutputStream<O extends OutputStream> extends OutputStream
An output stream implementation that holds a listener to call when the stream gets closed. The listener function can for example be used to actually commit an action to the real underlying file system.
Since:
4.0