Package com.sun.xml.ws.transport.tcp.io
Class FramedMessageOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.sun.xml.ws.transport.tcp.io.FramedMessageOutputStream
-
- All Implemented Interfaces:
LifeCycle,Closeable,Flushable,AutoCloseable
public final class FramedMessageOutputStream extends OutputStream implements LifeCycle
- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description FramedMessageOutputStream()FramedMessageOutputStream(int frameSize)FramedMessageOutputStream(int frameSize, boolean useDirectBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voidaddAllContentProperties(Map<Integer,String> properties)voidbuildHeader()voidclose()voidflushLast()booleanisDirectMode()voidpassivate()voidreset()voidsetChannelId(int channelId)voidsetContentId(int contentId)voidsetContentProperty(int key, String value)voidsetDirectMode(boolean isDirectMode)voidsetFrameSize(int frameSize)voidsetMessageId(int messageId)voidsetSocketChannel(SocketChannel socketChannel)voidwrite(byte[] data, int offset, int size)voidwrite(int data)-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
-
-
-
Method Detail
-
setFrameSize
public void setFrameSize(int frameSize)
-
isDirectMode
public boolean isDirectMode()
-
setDirectMode
public void setDirectMode(boolean isDirectMode)
-
setSocketChannel
public void setSocketChannel(SocketChannel socketChannel)
-
setChannelId
public void setChannelId(int channelId)
-
setMessageId
public void setMessageId(int messageId)
-
setContentId
public void setContentId(int contentId)
-
setContentProperty
public void setContentProperty(int key, String value)
-
write
public void write(int data) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] data, int offset, int size) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flushLast
public void flushLast() throws IOException- Throws:
IOException
-
buildHeader
public void buildHeader() throws IOException- Throws:
IOException
-
reset
public void reset()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
-