public class AsyncOutputWriter extends Object
AsyncOutputStream
using a given Charset
.Constructor and Description |
---|
AsyncOutputWriter(AsyncOutputStream asyncOutputStream)
Creates a new async writer using the default charset.
|
AsyncOutputWriter(AsyncOutputStream asyncOutputStream,
Charset charset)
Creates a new async writer using the specified charset.
|
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
asyncFlush()
Flushes the underlying async output stream.
|
CompletionStage<Void> |
asyncWrite(String s)
Writes the given string to the underlying async output stream.
|
public AsyncOutputWriter(AsyncOutputStream asyncOutputStream)
asyncOutputStream
- the async output stream on which to writepublic AsyncOutputWriter(AsyncOutputStream asyncOutputStream, Charset charset)
asyncOutputStream
- the async output stream on which to writecharset
- the charset to usepublic CompletionStage<Void> asyncWrite(String s)
string
- the string to write, using the specified charsetCompletionStage
indicating completion.public CompletionStage<Void> asyncFlush()
CompletionStage
indicating completion.Copyright © 2020 JBoss by Red Hat. All rights reserved.