Class OioByteStreamChannel

    • Constructor Detail

      • OioByteStreamChannel

        protected OioByteStreamChannel​(Channel parent)
        Deprecated.
        Create a new instance
        Parameters:
        parent - the parent Channel which was used to create this instance. This can be null if the has no parent as it was created by your self.
    • Method Detail

      • activate

        protected final void activate​(java.io.InputStream is,
                                      java.io.OutputStream os)
        Deprecated.
        Activate this instance. After this call isActive() will return true.
      • isActive

        public boolean isActive()
        Deprecated.
        Description copied from interface: Channel
        Return true if the Channel is active and so connected.
      • doReadBytes

        protected int doReadBytes​(ByteBuf buf)
                           throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractOioByteChannel
        Read bytes from the underlying Socket.
        Specified by:
        doReadBytes in class AbstractOioByteChannel
        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:
        java.lang.Exception - is thrown if an error occurred
      • doWriteBytes

        protected void doWriteBytes​(ByteBuf buf)
                             throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractOioByteChannel
        Write the data which is hold by the ByteBuf to the underlying Socket.
        Specified by:
        doWriteBytes in class AbstractOioByteChannel
        Parameters:
        buf - the ByteBuf which holds the data to transfer
        Throws:
        java.lang.Exception - is thrown if an error occurred