public class CloseableByteArrayOutputStream extends ByteArrayOutputStream
CompletableFuture when closed.
The future ties into the JDK compiler's asynchronous behaviour so callers can
wait for compiler output.buf, count| Constructor and Description |
|---|
CloseableByteArrayOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<?> |
closeFuture()
Return the future that completes when
close() is called. |
reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class ByteArrayOutputStreampublic CompletableFuture<?> closeFuture()
close() is called. Callers
may block on this to synchronise with the compiler's asynchronous
behaviour.Copyright © 2025. All rights reserved.