Class MessageInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, MessageAppender

    @Deprecated(since="2021-05-27")
    public class MessageInputStream
    extends java.io.InputStream
    implements MessageAppender
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Support class for reading a (single) WebSocket BINARY message via a InputStream.

    An InputStream that can access a queue of ByteBuffer payloads, along with expected InputStream blocking behavior.

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void appendFrame​(java.nio.ByteBuffer framePayload, boolean fin)
      Deprecated.
      Append the frame payload to the message.
      void close()
      Deprecated.
       
      void handlerComplete()
      Deprecated.
       
      void mark​(int readlimit)
      Deprecated.
       
      boolean markSupported()
      Deprecated.
       
      void messageComplete()
      Deprecated.
      Notification that message is to be considered complete.
      int read()
      Deprecated.
       
      int read​(byte[] b, int off, int len)
      Deprecated.
       
      void reset()
      Deprecated.
       
      • Methods inherited from class java.io.InputStream

        available, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, transferTo
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageInputStream

        public MessageInputStream​(Session session)
        Deprecated.
      • MessageInputStream

        public MessageInputStream​(Session session,
                                  int timeoutMs)
        Deprecated.
    • Method Detail

      • appendFrame

        public void appendFrame​(java.nio.ByteBuffer framePayload,
                                boolean fin)
                         throws java.io.IOException
        Deprecated.
        Description copied from interface: MessageAppender
        Append the frame payload to the message.
        Specified by:
        appendFrame in interface MessageAppender
        Parameters:
        framePayload - the frame payload to append.
        fin - flag indicating if this is the last part of the message or not.
        Throws:
        java.io.IOException - if unable to append the frame payload
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
      • handlerComplete

        public void handlerComplete()
        Deprecated.
      • read

        public int read()
                 throws java.io.IOException
        Deprecated.
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Deprecated.
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • messageComplete

        public void messageComplete()
        Deprecated.
        Description copied from interface: MessageAppender
        Notification that message is to be considered complete.

        Any cleanup or final actions should be taken here.

        Specified by:
        messageComplete in interface MessageAppender
      • reset

        public void reset()
                   throws java.io.IOException
        Deprecated.
        Overrides:
        reset in class java.io.InputStream
        Throws:
        java.io.IOException
      • mark

        public void mark​(int readlimit)
        Deprecated.
        Overrides:
        mark in class java.io.InputStream
      • markSupported

        public boolean markSupported()
        Deprecated.
        Overrides:
        markSupported in class java.io.InputStream