net.i2p.util

## Class TimeoutPipedOutputStream

- java.lang.Object
- - java.io.OutputStream
  - - java.io.PipedOutputStream
    - - net.i2p.util.TimeoutPipedOutputStream

- All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

      class TimeoutPipedOutputStream
      extends PipedOutputStream

  Helper for TimeoutPipedInputStream. There isn't any timeout implemented here. To support InternalSocket.setSoTimeout(). Package private, not a part of the public API, not for general use.
  See Also:
    `TimeoutPipedInputStream`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TimeoutPipedOutputStream(TimeoutPipedInputStream snk)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Overridden only so we can tell snk.

    - ### Methods inherited from class java.io.PipedOutputStream

      `connect, flush, write, write`

    - ### Methods inherited from class java.io.OutputStream

      `write`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TimeoutPipedOutputStream

          public TimeoutPipedOutputStream(TimeoutPipedInputStream snk)
                                   throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### close

          public void close()
                     throws IOException

      Overridden only so we can tell snk. We have to do this because TPIS can't get to pkg private receivedLast() in super.
      Specified by:
        `close` in interface `Closeable`
      Specified by:
        `close` in interface `AutoCloseable`
      Overrides:
        `close` in class `PipedOutputStream`
      Throws:
        `IOException`