Package io.micronaut.http.body
Class CharSequenceBodyWriter
java.lang.Object
io.micronaut.http.body.CharSequenceBodyWriter
- All Implemented Interfaces:
MessageBodyWriter<CharSequence>
@Singleton
public final class CharSequenceBodyWriter
extends Object
implements MessageBodyWriter<CharSequence>
Body writer for
CharSequences.- Since:
- 4.0.0
-
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, writeTo
-
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
-