Class WebSocketInputReader

java.lang.Object
java.lang.Thread
org.jgrapes.webconsole.base.WebSocketInputReader
All Implemented Interfaces:
Runnable

public class WebSocketInputReader extends Thread
Assembles Input events until a complete JSON message has been collected and then fires the message as JsonInput event.
  • Constructor Details

  • Method Details

    • write

      public void write(CharBuffer buffer) throws IOException
      Forward the data to the JSON decoder.
      Parameters:
      buffer - the buffer
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • close

      public void close() throws IOException
      Forward the close to the JSON decoder.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread