public class CommitHeaderAsyncOutputStream extends AsyncOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected AsyncOutputStream |
delegate |
protected CommitHeaderOutputStream.CommitCallback |
headers |
protected boolean |
isHeadersCommitted |
| Constructor and Description |
|---|
CommitHeaderAsyncOutputStream() |
CommitHeaderAsyncOutputStream(AsyncOutputStream delegate,
CommitHeaderOutputStream.CommitCallback headers) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
asyncFlush()
Flushes this async output stream.
|
CompletionStage<Void> |
asyncWrite(byte[] bytes,
int offset,
int length)
Writes to this async output stream.
|
void |
close() |
void |
commit() |
void |
flush() |
AsyncOutputStream |
getDelegate() |
void |
setDelegate(AsyncOutputStream delegate) |
void |
setHeaders(CommitHeaderOutputStream.CommitCallback headers) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int i,
int i1) |
void |
write(int i) |
asyncWriteprotected AsyncOutputStream delegate
protected boolean isHeadersCommitted
protected CommitHeaderOutputStream.CommitCallback headers
public CommitHeaderAsyncOutputStream(AsyncOutputStream delegate, CommitHeaderOutputStream.CommitCallback headers)
public CommitHeaderAsyncOutputStream()
public AsyncOutputStream getDelegate()
public void setDelegate(AsyncOutputStream delegate)
public void setHeaders(CommitHeaderOutputStream.CommitCallback headers)
public void commit()
public void write(int i)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
int i,
int i1)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic CompletionStage<Void> asyncFlush()
AsyncOutputStreamasyncFlush in class AsyncOutputStreamCompletionStage notified on completion of the flush operation.public CompletionStage<Void> asyncWrite(byte[] bytes, int offset, int length)
AsyncOutputStreamasyncWrite in class AsyncOutputStreambytes - 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.