code: public static OutputStream leftShift(OutputStream self, InputStream in) throws IOException {
          byte[] buf = new byte[DEFAULT_BUFFER_SIZE];
          for (int count; -1 != (count = in.read(buf)); ) {
              self.write(buf, 0, count);
          }
          self.flush();
          return self;
      }
docs: Pipe an InputStream into an OutputStream for efficient stream copying.
  
  @param self stream on which to write
  @param in   stream to read from
  @return the outputstream itself
  @throws IOException if an I/O error occurs.
  @since 1.0