Class ReadableTraceChannel

    • Constructor Detail

      • ReadableTraceChannel

        public ReadableTraceChannel​(ReadableSelectionChannel wrappedChannel)
        Deprecated.
        Constructor.
        Parameters:
        wrappedChannel - The wrapped channel.
      • ReadableTraceChannel

        public ReadableTraceChannel​(ReadableSelectionChannel wrappedChannel,
                                    java.io.OutputStream traceStream)
        Deprecated.
        Constructor.
        Parameters:
        wrappedChannel - The wrapped channel.
        traceStream - The trace stream.
    • Method Detail

      • read

        public int read​(java.nio.ByteBuffer dst)
                 throws java.io.IOException
        Deprecated.
        Reads the available byte from the wrapped channel to the destination buffer while writing them to the console.
        Specified by:
        read in interface java.nio.channels.ReadableByteChannel
        Parameters:
        dst - The destination buffer.
        Returns:
        The number of bytes read.
        Throws:
        java.io.IOException