code: public void read(int length, OutputStream stream) throws IllegalStateException, IOException {
          stream.write(read(length));
      }
docs: <p>Reads a length bytes from the serial port/device into a provided OutputStream.</p>
  
  @param length
  The number of bytes to get from the serial port/device.
  This number must not be higher than the number of available bytes.
  @param stream
  The OutputStream object to write to.