Package org.jboss.resteasy.spi
Class AsyncOutputWriter
- java.lang.Object
 - 
- org.jboss.resteasy.spi.AsyncOutputWriter
 
 
- 
public class AsyncOutputWriter extends Object
Utility class to write to anAsyncOutputStreamusing a givenCharset. 
- 
- 
Constructor Summary
Constructors Constructor 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. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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. 
 - 
 
- 
- 
Constructor Detail
- 
AsyncOutputWriter
public AsyncOutputWriter(AsyncOutputStream asyncOutputStream)
Creates a new async writer using the default charset.- Parameters:
 asyncOutputStream- the async output stream on which to write
 
- 
AsyncOutputWriter
public AsyncOutputWriter(AsyncOutputStream asyncOutputStream, Charset charset)
Creates a new async writer using the specified charset.- Parameters:
 asyncOutputStream- the async output stream on which to writecharset- the charset to use
 
 - 
 
- 
Method Detail
- 
asyncWrite
public CompletionStage<Void> asyncWrite(String s)
Writes the given string to the underlying async output stream.- Parameters:
 string- the string to write, using the specified charset- Returns:
 - a 
CompletionStageindicating completion. 
 
- 
asyncFlush
public CompletionStage<Void> asyncFlush()
Flushes the underlying async output stream.- Returns:
 - a 
CompletionStageindicating completion. 
 
 - 
 
 -