Interface MessageWriter
public interface MessageWriter
Responsible for writing messages to an output stream.
- Since:
- 1.59.0
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the message length in bytes, or -1 if the length is unknown.voidwriteMessage(OutputStream output) Write the message to theOutputStream.
-
Method Details
-
writeMessage
Write the message to theOutputStream.- Throws:
IOException
-
getContentLength
int getContentLength()Return the message length in bytes, or -1 if the length is unknown.
-