Interface ChannelPipedSink

  • All Superinterfaces:
    java.lang.AutoCloseable, java.nio.channels.Channel, java.io.Closeable
    All Known Implementing Classes:
    ChannelPipedInputStream

    public interface ChannelPipedSink
    extends java.nio.channels.Channel
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void eof()
      Signal end of writing to the sink
      void receive​(byte[] bytes, int off, int len)  
      • Methods inherited from interface java.nio.channels.Channel

        close, isOpen
    • Method Detail

      • receive

        void receive​(byte[] bytes,
                     int off,
                     int len)
              throws java.io.IOException
        Parameters:
        bytes - Bytes to be sent to the sink
        off - Offset in buffer
        len - Number of bytes
        Throws:
        java.io.IOException - If failed to send the data
      • eof

        void eof()
        Signal end of writing to the sink