Class ChannelAsyncInputStream

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.channel.ChannelAsyncInputStream
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ChannelHolder, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoInputStream

public class ChannelAsyncInputStream extends org.apache.sshd.common.util.closeable.AbstractCloseable implements org.apache.sshd.common.io.IoInputStream, ChannelHolder
Author:
Apache MINA SSHD Project
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable

    org.apache.sshd.common.util.closeable.AbstractCloseable.State
  • Field Summary

    Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable

    closeFuture, futureLock, state

    Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.sshd.common.future.CloseFuture
     
     
    protected void
     
    org.apache.sshd.common.io.IoReadFuture
    read(org.apache.sshd.common.util.buffer.Buffer buf)
     
     
    void
    write(org.apache.sshd.common.util.Readable src)
     

    Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable

    addCloseFutureListener, builder, close, doCloseImmediately, getFutureLock, isClosed, isClosing, removeCloseFutureListener

    Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.sshd.common.Closeable

    addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
  • Constructor Details

    • ChannelAsyncInputStream

      public ChannelAsyncInputStream(Channel channel)
  • Method Details

    • getChannel

      public Channel getChannel()
      Specified by:
      getChannel in interface ChannelHolder
      Returns:
      The associated Channel instance
    • write

      public void write(org.apache.sshd.common.util.Readable src) throws IOException
      Throws:
      IOException
    • read

      public org.apache.sshd.common.io.IoReadFuture read(org.apache.sshd.common.util.buffer.Buffer buf)
      Specified by:
      read in interface org.apache.sshd.common.io.IoInputStream
    • preClose

      protected void preClose()
      Overrides:
      preClose in class org.apache.sshd.common.util.closeable.AbstractCloseable
    • doCloseGracefully

      protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()
      Overrides:
      doCloseGracefully in class org.apache.sshd.common.util.closeable.AbstractCloseable
    • toString

      public String toString()
      Overrides:
      toString in class Object