Interface WrappedByteChannel

    • Method Detail

      • isNeedWrite

        boolean isNeedWrite()
        returns whether writeMore should be called write additional data.
        Returns:
        is a additional write needed
      • writeMore

        void writeMore()
                throws IOException
        Gets called when isNeedWrite() ()} requires a additional rite
        Throws:
        IOException - may be thrown due to an error while writing
      • readMore

        int readMore​(ByteBuffer dst)
              throws IOException
        This function does not read data from the underlying channel at all. It is just a way to fetch data which has already be received or decoded but was but was not yet returned to the user. This could be the case when the decoded data did not fit into the buffer the user passed to ReadableByteChannel.read(ByteBuffer).
        Parameters:
        dst - the destiny of the read
        Returns:
        the amount of remaining data
        Throws:
        IOException - when a error occurred during unwrapping
      • isBlocking

        boolean isBlocking()
        This function returns the blocking state of the channel
        Returns:
        is the channel blocking