Releases a stream that was instantiated by the method associated with the CreateResourceStream interface.
The
ReleaseResourceStream
interface represents a functional interface that declares a method to release a stream
that was previously instantiated by the corresponding method in the CreateResourceStream interface. Implementations
of this interface should provide the necessary functionality to release any resources associated with the stream.
Example usage:
ReleaseResourceStream releaseResourceStream = ((pageNumber, resource, resourceStream) -> {
// Custom implementation to release any resources associated with the resource stream
};
HtmlViewOptions htmlViewOptions = HtmlViewOptions.forExternalResources(createPageStream, createResourceStream, releaseResourceStream);
// Use htmlViewOptions in Viewer