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
public final class FramedMessageOutputStream
- extends OutputStream
- implements LifeCycle
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FramedMessageOutputStream
public FramedMessageOutputStream()
FramedMessageOutputStream
public FramedMessageOutputStream(int frameSize)
FramedMessageOutputStream
public FramedMessageOutputStream(int frameSize,
boolean useDirectBuffer)
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)
addAllContentProperties
public void addAllContentProperties(Map<Integer,String> properties)
write
public void write(int data)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] data,
int offset,
int size)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
flushLast
public void flushLast()
throws IOException
- Throws:
IOException
buildHeader
public void buildHeader()
throws IOException
- Throws:
IOException
reset
public void reset()
activate
public void activate()
- Specified by:
activate in interface LifeCycle
passivate
public void passivate()
- Specified by:
passivate in interface LifeCycle
close
public void close()
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.