public class HeaderFlushedAsyncOutputStream extends AsyncOutputStream
Constructor and Description |
---|
HeaderFlushedAsyncOutputStream(javax.ws.rs.core.MultivaluedMap<String,Object> headers,
AsyncOutputStream delegate) |
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 |
flush() |
protected CompletionStage<Void> |
flushHeaders() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int i,
int i1) |
void |
write(int i) |
asyncWrite
public HeaderFlushedAsyncOutputStream(javax.ws.rs.core.MultivaluedMap<String,Object> headers, AsyncOutputStream delegate)
protected CompletionStage<Void> flushHeaders()
public void write(int i) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes, int i, int i1) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public CompletionStage<Void> asyncFlush()
AsyncOutputStream
asyncFlush
in class AsyncOutputStream
CompletionStage
notified on completion of the flush operation.public CompletionStage<Void> asyncWrite(byte[] bytes, int offset, int length)
AsyncOutputStream
asyncWrite
in class AsyncOutputStream
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.