public void setEncoder(ResourceEncoder<Z> encoder) {
        this.encoder = encoder;
    }
Sets the {@link ResourceEncoder} to use to write the decoded and transformed resource to
the disk cache.

@param encoder The encoder to use.
core/src/main/java/com/bumptech/glide/provider/ChildLoadProvider.java