code: @InterfaceAudience.Public
      public void setAttachment(String name, String contentType, URL contentStreamURL) {
          try {
              InputStream inputStream = contentStreamURL.openStream();
              setAttachment(name, contentType, inputStream);
          } catch (IOException e) {
              Log.e(Database.TAG, "Error opening stream for url: %s", contentStreamURL);
              throw new RuntimeException(e);
          }
      }
docs: Sets the attachment with the given name. The Attachment data will be written
  to the Database when the Revision is saved.
  
  @param name             The name of the Attachment to set.
  @param contentType      The content-type of the Attachment.
  @param contentStreamURL The URL that contains the Attachment content.