Releases a stream that was instantiated by the method associated with the CreatePageStream interface.
The
ReleasePageStream
interface represents a functional interface that declares a method to release a stream
that was previously instantiated by the corresponding method in the CreatePageStream interface. Implementations
of this interface should provide the necessary functionality to release any resources associated with the stream.
Example usage:
ReleasePageStream releasePageStream = ((pageNumber, pageStream) -> {
// Custom implementation to release any resources associated with the file stream
};
PngViewOptions pngViewOptions = new PngViewOptions(createPageStream, releasePageStream);
// Use pngViewOptions in Viewer