Class NoFlushByteOutput

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.jboss.marshalling.ByteOutput

    public class NoFlushByteOutput
    extends java.lang.Object
    implements org.jboss.marshalling.ByteOutput
    An output stream that ignores flushes. The marshsaller will flush when it is done, which results in two frames on the wire. By ignoring the flush only one frame is sent for each message.
    Author:
    Stuart Douglas
    • Constructor Summary

      Constructors 
      Constructor Description
      NoFlushByteOutput​(org.jboss.marshalling.ByteOutput delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void write​(byte[] b)  
      void write​(byte[] b, int off, int len)  
      void write​(int b)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoFlushByteOutput

        public NoFlushByteOutput​(org.jboss.marshalling.ByteOutput delegate)
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in interface org.jboss.marshalling.ByteOutput
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Specified by:
        write in interface org.jboss.marshalling.ByteOutput
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Specified by:
        write in interface org.jboss.marshalling.ByteOutput
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Throws:
        java.io.IOException