Class WebSocketFrameHelper
java.lang.Object
ch.nolix.base.net.websocket.WebSocketFrameHelper
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketFramePayloadLengthstatic WebSocketFramePayloadLengthstatic voidwritePayloadLengthIntoBytesWhenPayloadLengthTypeIsBits64(byte[] bytes, byte[] payloadLengthBytes)
-
Method Details
-
calculatePayloadLengthWhenPayloadLengthIs16Bits
public static WebSocketFramePayloadLength calculatePayloadLengthWhenPayloadLengthIs16Bits(InputStream inputStream) throws IOException - Throws:
IOException
-
calculatePayloadLengthWhenPayloadLengthIs64Bits
public static WebSocketFramePayloadLength calculatePayloadLengthWhenPayloadLengthIs64Bits(InputStream inputStream) throws IOException - Throws:
IOException
-
writePayloadLengthIntoBytesWhenPayloadLengthTypeIsBits64
public static void writePayloadLengthIntoBytesWhenPayloadLengthTypeIsBits64(byte[] bytes, byte[] payloadLengthBytes)
-