All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

class TimeoutPipedOutputStreamextends PipedOutputStream
Helper for TimeoutPipedInputStream. There isn't any timeout implemented here.

To support InternalSocket.setSoTimeout(int). Package private, not a part of the public API, not for general use.

See Also:
  • Field Details

  • Constructor Details

    • TimeoutPipedOutputStream

      public TimeoutPipedOutputStream(TimeoutPipedInputStream snk) throws IOException
      Connects this stream to the timeout-aware pipe that will read it.
      Parameters:
      snk - the pipe to feed, which also gets notified when this stream closes
      Throws:
      IOException - if the sink is already connected to another output stream
  • Method Details