public final class FramedMessageOutputStream extends OutputStream implements LifeCycle
| Constructor and Description |
|---|
FramedMessageOutputStream() |
FramedMessageOutputStream(int frameSize) |
FramedMessageOutputStream(int frameSize,
boolean useDirectBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addAllContentProperties(Map<Integer,String> properties) |
void |
buildHeader() |
void |
close() |
void |
flushLast() |
boolean |
isDirectMode() |
void |
passivate() |
void |
reset() |
void |
setChannelId(int channelId) |
void |
setContentId(int contentId) |
void |
setContentProperty(int key,
String value) |
void |
setDirectMode(boolean isDirectMode) |
void |
setFrameSize(int frameSize) |
void |
setMessageId(int messageId) |
void |
setSocketChannel(SocketChannel socketChannel) |
void |
write(byte[] data,
int offset,
int size) |
void |
write(int data) |
flush, writepublic FramedMessageOutputStream()
public FramedMessageOutputStream(int frameSize)
public FramedMessageOutputStream(int frameSize,
boolean useDirectBuffer)
public void setFrameSize(int frameSize)
public boolean isDirectMode()
public void setDirectMode(boolean isDirectMode)
public void setSocketChannel(SocketChannel socketChannel)
public void setChannelId(int channelId)
public void setMessageId(int messageId)
public void setContentId(int contentId)
public void setContentProperty(int key,
String value)
public void write(int data)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] data,
int offset,
int size)
throws IOException
write in class OutputStreamIOExceptionpublic void flushLast()
throws IOException
IOExceptionpublic void buildHeader()
throws IOException
IOExceptionpublic void reset()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamCopyright © 2005–2018 Oracle Corporation. All rights reserved.