public abstract class AsyncOutputStream extends OutputStream
| Constructor and Description |
|---|
AsyncOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract CompletionStage<Void> |
asyncFlush()
Flushes this async output stream.
|
CompletionStage<Void> |
asyncWrite(byte[] bytes)
Writes to this async output stream.
|
abstract CompletionStage<Void> |
asyncWrite(byte[] bytes,
int offset,
int length)
Writes to this async output stream.
|
public abstract CompletionStage<Void> asyncFlush()
CompletionStage notified on completion of the flush operation.public CompletionStage<Void> asyncWrite(byte[] bytes)
asyncWrite(bytes, 0, bytes.length.bytes - the bytes to writeCompletionStage notified on completion of the write operation.public abstract CompletionStage<Void> asyncWrite(byte[] bytes, int offset, int length)
bytes - the bytes to writeoffset - the offset from which to start writing in the given byte array.length - the number of bytes to write from the given byte arrayCompletionStage notified on completion of the write operation.Copyright © 2020 JBoss by Red Hat. All rights reserved.