Class TimeoutOutputStream

    • Constructor Detail

      • TimeoutOutputStream

        public TimeoutOutputStream​(OutputStream destination,
                                   InterruptTimer timer)
        Wrap an output stream with a timeout on all write operations.
        Parameters:
        destination - base input stream (to write to). The stream must be interruptible (most socket streams are).
        timer - timer to manage the timeouts during writes.