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 Details

    • FramedMessageOutputStream

      public FramedMessageOutputStream()
    • FramedMessageOutputStream

      public FramedMessageOutputStream(int frameSize)
    • FramedMessageOutputStream

      public FramedMessageOutputStream(int frameSize, boolean useDirectBuffer)
  • Method Details

    • 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 AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream