Class WebSocketInputStream

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

    class WebSocketInputStream
    extends java.io.FilterInputStream
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      WebSocketInputStream​(java.io.InputStream in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void readBytes​(byte[] buffer, int length)  
      WebSocketFrame readFrame()  
      java.lang.String readLine()  
      private byte[] readPayload​(long payloadLength, boolean mask, byte[] maskingKey)  
      private void skipQuietly​(long length)  
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.lang.Object

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

      • WebSocketInputStream

        public WebSocketInputStream​(java.io.InputStream in)
    • Method Detail

      • readLine

        public java.lang.String readLine()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • skipQuietly

        private void skipQuietly​(long length)
      • readPayload

        private byte[] readPayload​(long payloadLength,
                                   boolean mask,
                                   byte[] maskingKey)
                            throws java.io.IOException,
                                   WebSocketException
        Throws:
        java.io.IOException
        WebSocketException