title: Alternative to Piped-/InputOutputStream
body: <p>I have an audio player with uses an PipedOutputStream for buffering the input of the data and a PipedInput for the actual playing. Sometimes the player pauses, but there is still data to buffer. If the buffer is now full, the writing-thread will block indefinitely.</p>
  
  <p>Is there a fast alternative, which supports a timeout on write or another solution?</p>