Class AbstractOioByteChannel

    • Method Detail

      • isInputShutdown

        protected abstract boolean isInputShutdown()
        Deprecated.
        Determine if the input side of this channel is shutdown.
        Returns:
        true if the input side of this channel is shutdown.
      • shutdownInput

        protected abstract ChannelFuture shutdownInput()
        Deprecated.
        Shutdown the input side of this channel.
        Returns:
        A channel future that will complete when the shutdown is complete.
      • available

        protected abstract int available()
        Deprecated.
        Return the number of bytes ready to read from the underlying Socket.
      • doReadBytes

        protected abstract int doReadBytes​(ByteBuf buf)
                                    throws Exception
        Deprecated.
        Read bytes from the underlying Socket.
        Parameters:
        buf - the ByteBuf into which the read bytes will be written
        Returns:
        amount the number of bytes read. This may return a negative amount if the underlying Socket was closed
        Throws:
        Exception - is thrown if an error occurred
      • doWriteBytes

        protected abstract void doWriteBytes​(ByteBuf buf)
                                      throws Exception
        Deprecated.
        Write the data which is hold by the ByteBuf to the underlying Socket.
        Parameters:
        buf - the ByteBuf which holds the data to transfer
        Throws:
        Exception - is thrown if an error occurred
      • doWriteFileRegion

        protected abstract void doWriteFileRegion​(FileRegion region)
                                           throws Exception
        Deprecated.
        Write the data which is hold by the FileRegion to the underlying Socket.
        Parameters:
        region - the FileRegion which holds the data to transfer
        Throws:
        Exception - is thrown if an error occurred