Class CancellableOutputStream

    • Constructor Detail

      • CancellableOutputStream

        public CancellableOutputStream()
    • Method Detail

      • cancel

        public abstract void cancel()
        Cancel writing to the stream. This is different than OutputStream.close() in that it indicates the data written so far is truncated and incomplete. Callers must still invoke OutputStream.close() even if the stream is cancelled.