@Override
    @SuppressWarnings("deprecation")  // finalize() is deprecated from Java 9
    public void finalize() throws Throwable {
        try {
            close();
        } finally {
            super.finalize();
        }
    }
Constructs a new ContentInputStream that reads from the given {@link ReadableContentChannel}.

@param content The content to read the stream from.
jdisc_core/src/main/java/com/yahoo/jdisc/handler/ContentInputStream.java