Creates a new FileContent using the Java-friendly Consumer.
Creates a new FileContent using the DSL builder.