Class MessageWriter

java.lang.Object
org.teamapps.message.protocol.utils.MessageWriter
All Implemented Interfaces:
java.lang.AutoCloseable

public class MessageWriter
extends java.lang.Object
implements java.lang.AutoCloseable
  • Constructor Summary

    Constructors
    Constructor Description
    MessageWriter​(java.io.OutputStream outputStream, FileDataWriter fileSink)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void writeMessage​(Message message)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MessageWriter

      public MessageWriter​(java.io.OutputStream outputStream, FileDataWriter fileSink)
  • Method Details

    • writeMessage

      public void writeMessage​(Message message) throws java.io.IOException
      Throws:
      java.io.IOException
    • close

      public void close() throws java.lang.Exception
      Specified by:
      close in interface java.lang.AutoCloseable
      Throws:
      java.lang.Exception