Class TimeoutInputStream

    • Constructor Detail

      • TimeoutInputStream

        public TimeoutInputStream​(InputStream src,
                                  InterruptTimer timer)
        Wrap an input stream with a timeout on all read operations.
        Parameters:
        src - base input stream (to read from). The stream must be interruptible (most socket streams are).
        timer - timer to manage the timeouts during reads.