Class MessageInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.jetty.websocket.common.message.MessageInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,MessageAppender
@Deprecated(since="2021-05-27") public class MessageInputStream extends 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.
-
-
Constructor Summary
Constructors Constructor Description MessageInputStream(Session session)Deprecated.MessageInputStream(Session session, int timeoutMs)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidappendFrame(ByteBuffer framePayload, boolean fin)Deprecated.Append the frame payload to the message.voidclose()Deprecated.voidhandlerComplete()Deprecated.voidmark(int readlimit)Deprecated.booleanmarkSupported()Deprecated.voidmessageComplete()Deprecated.Notification that message is to be considered complete.intread()Deprecated.intread(byte[] b, int off, int len)Deprecated.voidreset()Deprecated.-
Methods inherited from class java.io.InputStream
available, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, transferTo
-
-
-
-
Method Detail
-
appendFrame
public void appendFrame(ByteBuffer framePayload, boolean fin) throws IOException
Deprecated.Description copied from interface:MessageAppenderAppend the frame payload to the message.- Specified by:
appendFramein interfaceMessageAppender- Parameters:
framePayload- the frame payload to append.fin- flag indicating if this is the last part of the message or not.- Throws:
IOException- if unable to append the frame payload
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
handlerComplete
public void handlerComplete()
Deprecated.
-
read
public int read() throws IOExceptionDeprecated.- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOExceptionDeprecated.- Overrides:
readin classInputStream- Throws:
IOException
-
messageComplete
public void messageComplete()
Deprecated.Description copied from interface:MessageAppenderNotification that message is to be considered complete.Any cleanup or final actions should be taken here.
- Specified by:
messageCompletein interfaceMessageAppender
-
reset
public void reset() throws IOExceptionDeprecated.- Overrides:
resetin classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit)
Deprecated.- Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()
Deprecated.- Overrides:
markSupportedin classInputStream
-
-