Class BufferedTextMessage


  • public class BufferedTextMessage
    extends java.lang.Object
    A buffered text message.
    Author:
    Stuart Douglas
    • Constructor Detail

      • BufferedTextMessage

        public BufferedTextMessage​(long maxMessageSize,
                                   boolean bufferFullMessage)
        Parameters:
        maxMessageSize - The maximum message size
        bufferFullMessage - If the complete message should be buffered
      • BufferedTextMessage

        public BufferedTextMessage​(boolean bufferFullMessage)
    • Method Detail

      • readBlocking

        public void readBlocking​(StreamSourceFrameChannel channel)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getData

        public java.lang.String getData()
        Gets the buffered data and clears the buffered text message. If this is not called on a UTF8 character boundary there may be partial code point data that is still buffered.
        Returns:
        The data
      • isComplete

        public boolean isComplete()