public class MessageInputStream extends InputStream implements MessageAppender
Constructor and Description |
---|
MessageInputStream() |
MessageInputStream(int timeoutMs) |
Modifier and Type | Method and Description |
---|---|
void |
appendFrame(ByteBuffer framePayload,
boolean fin)
Append the frame payload to the message.
|
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
void |
messageComplete()
Notification that message is to be considered complete.
|
int |
read() |
void |
reset() |
available, read, read, skip
public MessageInputStream()
public MessageInputStream(int timeoutMs)
public void appendFrame(ByteBuffer framePayload, boolean fin) throws IOException
MessageAppender
appendFrame
in interface MessageAppender
framePayload
- the frame payload to append.fin
- flag indicating if this is the last part of the message or not.IOException
- if unable to append the frame payloadpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void messageComplete()
MessageAppender
Any cleanup or final actions should be taken here.
messageComplete
in interface MessageAppender
public int read() throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.