Enum AbstractClientChannel.NullIoInputStream

    • Constructor Detail

      • NullIoInputStream

        private NullIoInputStream()
    • Method Detail

      • values

        public static AbstractClientChannel.NullIoInputStream[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AbstractClientChannel.NullIoInputStream c : AbstractClientChannel.NullIoInputStream.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AbstractClientChannel.NullIoInputStream valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • close

        public CloseFuture close​(boolean immediately)
        Description copied from interface: Closeable
        Close this resource asynchronously and return a future. Resources support two closing modes: a graceful mode which will cleanly close the resource and an immediate mode which will close the resources abruptly.
        Specified by:
        close in interface Closeable
        Parameters:
        immediately - true if the resource should be shut down abruptly, false for a graceful close
        Returns:
        a CloseFuture representing the close request
      • addCloseFutureListener

        public void addCloseFutureListener​(SshFutureListener<CloseFuture> listener)
        Description copied from interface: Closeable
        Pre-register a listener to be informed when resource is closed. If resource is already closed, the listener will be invoked immediately and not registered for future notification
        Specified by:
        addCloseFutureListener in interface Closeable
        Parameters:
        listener - The notification SshFutureListener - never null
      • isClosed

        public boolean isClosed()
        Description copied from interface: Closeable
        Returns true if this object has been closed.
        Specified by:
        isClosed in interface Closeable
        Returns:
        true if closing