public abstract class CancellableOutputStream extends OutputStream
OutputStream to which writing can be cancel()ed.
 
 Cancelling tells the downstream receiver of the output that the stream will not be written to anymore, and that the
 data sent was incomplete. The stream must still be OutputStream.close()d by the caller.
| Constructor and Description | 
|---|
| CancellableOutputStream() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | cancel()Cancel writing to the stream. | 
public abstract void cancel()
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.Copyright © 2023. All rights reserved.