public final class FramedMessageInputStream extends InputStream implements LifeCycle
ByteBuffer| Constructor and Description |
|---|
FramedMessageInputStream() |
FramedMessageInputStream(int frameSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
int |
available()
Return the available bytes
|
void |
close()
Close this stream.
|
void |
forceHeaderRead() |
int |
getChannelId() |
int |
getContentId() |
Map<Integer,String> |
getContentProperties() |
int |
getMessageId() |
boolean |
isDirectMode() |
boolean |
isMessageInProcess() |
boolean |
markSupported()
Return true if mark is supported.
|
void |
passivate() |
int |
read()
Read the first byte from the wrapped
ByteBuffer. |
int |
read(byte[] b)
Read the bytes from the wrapped
ByteBuffer. |
int |
read(byte[] b,
int offset,
int length)
Read the first byte of the wrapped
ByteBuffer. |
void |
reset() |
void |
setByteBuffer(ByteBuffer byteBuffer) |
void |
setDirectMode(boolean isDirectMode) |
void |
setFrameSize(int frameSize) |
void |
setSocketChannel(SocketChannel socketChannel) |
void |
skipToEndOfMessage() |
String |
toString() |
mark, skippublic FramedMessageInputStream()
public FramedMessageInputStream(int frameSize)
public void setSocketChannel(SocketChannel socketChannel)
public int getChannelId()
public int getMessageId()
public int getContentId()
public boolean isDirectMode()
public void setDirectMode(boolean isDirectMode)
public void setFrameSize(int frameSize)
public void setByteBuffer(ByteBuffer byteBuffer)
public int available()
available in class InputStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
ByteBuffer.read in class InputStreampublic int read(byte[] b)
ByteBuffer.read in class InputStreampublic int read(byte[] b,
int offset,
int length)
ByteBuffer.read in class InputStreampublic void forceHeaderRead()
throws IOException
IOExceptionpublic void skipToEndOfMessage()
throws EOFException
EOFExceptionpublic boolean isMessageInProcess()
public void reset()
reset in class InputStreamCopyright © 2005–2018 Oracle Corporation. All rights reserved.