Package io.helidon.reactive.media.common
Class ContentWriters
java.lang.Object
io.helidon.reactive.media.common.ContentWriters
Utility class that provides standalone mechanisms for writing message body
content.
-
Method Summary
Modifier and TypeMethodDescriptionwriteBytes(byte[] bytes, boolean copy) writeCharBuffer(CharBuffer buffer, Charset charset) writeCharSequence(CharSequence cs, Charset charset) writeStackTrace(Throwable throwable, Charset charset)
-
Method Details
-
writeBytes
- Parameters:
bytes- the byte arraycopy- iftruethe byte array is copied- Returns:
- Single
- Since:
- 2.0.0
-
writeCharSequence
- Parameters:
cs- the char sequencecharset- the charset to use to encode the char sequence- Returns:
- Single
- Since:
- 2.0.0
-
writeCharBuffer
- Parameters:
buffer- the char buffercharset- the charset to use to encode the char sequence- Returns:
- Single
- Since:
- 2.0.0
-
writeStackTrace
- Parameters:
throwable- theThrowablecharset- the charset to use to encode the stack trace- Returns:
- Single
- Since:
- 2.0.0
-