Interface ChannelPipedSink

All Superinterfaces:
AutoCloseable, Channel, Closeable
All Known Implementing Classes:
ChannelPipedInputStream

public interface ChannelPipedSink extends Channel
Author:
Apache MINA SSHD Project
  • Method Summary

    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 Details

    • receive

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

      void eof()
      Signal end of writing to the sink