@Deprecated
public class WsInputStream
extends java.io.InputStream
InputStream
. It only
makes the number of bytes declared in the payload length available for
reading even if more bytes are available from the socket.Constructor and Description |
---|
WsInputStream(UpgradeProcessor<?> processor,
WsOutbound outbound)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
WsFrame |
nextFrame(boolean block)
Deprecated.
Process the next WebSocket frame.
|
int |
read()
Deprecated.
|
int |
read(byte[] b,
int off,
int len)
Deprecated.
|
public WsInputStream(UpgradeProcessor<?> processor, WsOutbound outbound)
public WsFrame nextFrame(boolean block) throws java.io.IOException
block
- Should this method block until a frame is presented if no
data is currently available to process. Note that if a
single byte is available, this method will block until the
complete frame (excluding payload for non-control frames) is
available.null
if block is
false
and there is no data to be processed.java.io.IOException
- If a problem occurs reading the data for the frame.public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.