Package com.neovisionaries.ws.client
Class WebSocketInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.neovisionaries.ws.client.WebSocketInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
readBytes
(byte[] buffer, int length) 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
-
Constructor Details
-
WebSocketInputStream
-
-
Method Details
-
readLine
- Throws:
IOException
-
readFrame
- Throws:
IOException
WebSocketException
-
readBytes
- Throws:
IOException
WebSocketException
-
skipQuietly
private void skipQuietly(long length) -
readPayload
private byte[] readPayload(long payloadLength, boolean mask, byte[] maskingKey) throws IOException, WebSocketException - Throws:
IOException
WebSocketException
-