@Override
  public BlobDescriptor writeTo(OutputStream outputStream) throws IOException {
    try (InputStream stringIn =
        new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8))) {
      return Digests.computeDigest(stringIn, outputStream);
    }
  }
A {@link Blob} that holds a {@link String}. Encodes in UTF-8 when writing in bytes.
jib-core/src/main/java/com/google/cloud/tools/jib/blob/StringBlob.java