Package io.micronaut.http.body
Class CharSequenceBodyWriter
java.lang.Object
io.micronaut.http.body.CharSequenceBodyWriter
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,MessageBodyWriter<CharSequence>
@Singleton
public final class CharSequenceBodyWriter
extends Object
implements MessageBodyWriter<CharSequence>
Body writer for
CharSequences.- Since:
- 4.0.0
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteTo(io.micronaut.core.type.Argument<CharSequence> type, MediaType mediaType, CharSequence object, io.micronaut.core.type.MutableHeaders outgoingHeaders, OutputStream outputStream) Writes an object to the given output stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.body.MessageBodyWriter
createSpecific, isBlocking, isWriteable, writeToMethods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
CharSequenceBodyWriter
public CharSequenceBodyWriter()
-
-
Method Details
-
writeTo
public void writeTo(io.micronaut.core.type.Argument<CharSequence> type, MediaType mediaType, CharSequence object, io.micronaut.core.type.MutableHeaders outgoingHeaders, OutputStream outputStream) throws CodecException Description copied from interface:MessageBodyWriterWrites an object to the given output stream.- Specified by:
writeToin interfaceMessageBodyWriter<CharSequence>- Parameters:
type- The typemediaType- The media typeobject- The object to writeoutgoingHeaders- The HTTP headersoutputStream- The output stream- Throws:
CodecException- If an error occurs decoding
-