public ContentBuilder<P> as(InputStream content) {
    try {
      return as(IOUtils.toString(content, StandardCharsets.UTF_8));
    } catch (IOException e) {
      throw new IllegalArgumentException("Failed to read content", e);
    }
  }
public ContentBuilder < P > as ( InputStream content ) { try { return as ( IOUtils . toString ( content , StandardCharsets . UTF_8 ) ) ; } catch ( IOException e ) { throw new IllegalArgumentException ( "Failed to read content" , e ) ; } }
Sets the content.
@param content the content to add
@return this builder