code: @Override
      public void write(int oneByte) throws IOException {
          PipedInputStream stream = target;
          if (stream == null) {
              throw new IOException("Pipe not connected");
          }
          stream.receive(oneByte);
      }
docs: Writes a single byte to this stream. Only the least significant byte of
  the integer {@code oneByte} is written. The written byte can then be read
  from the connected input stream.
  <p>
  Separate threads should be used to write to a {@code PipedOutputStream}
  and to read from the connected {@link PipedInputStream}. If the same
  thread is used, a deadlock may occur.
  
  @param oneByte
  the byte to write.
  @throws InterruptedIOException
  if the pipe is full and the current thread is interrupted
  waiting for space to write data. This case is not currently
  handled correctly.
  @throws IOException
  if this stream is not connected, if the target stream is
  closed or if the thread reading from the target stream is no
  longer alive. This case is currently not handled correctly.