Class ChannelInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, IBufferHandler

    public class ChannelInputStream
    extends BufferInputStream
    An input stream that provides the buffers which arrive at a channel as a continuous byte sequence.
    Author:
    Eike Stepper
    • Constructor Detail

      • ChannelInputStream

        public ChannelInputStream​(IChannel channel)
      • ChannelInputStream

        public ChannelInputStream​(IChannel channel,
                                  long millisBeforeTimeout)
    • Method Detail

      • getChannel

        public IChannel getChannel()
      • setMillisBeforeTimeout

        public void setMillisBeforeTimeout​(long millisBeforeTimeout)
      • setMillisInterruptCheck

        public void setMillisInterruptCheck​(long millisInterruptCheck)
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class BufferInputStream
        Throws:
        java.io.IOException