@FunctionalInterface public interface ReleasePageStream
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
CreatePageStream| Modifier and Type | Method and Description |
|---|---|
void |
invoke(int pageNumber,
Closeable pageStream)
Releases the stream created by the method associated with the
CreatePageStream interface. |
void invoke(int pageNumber,
Closeable pageStream)
Releases the stream created by the method associated with the CreatePageStream interface.
pageNumber - The number of the page.pageStream - The stream to be released.Copyright © 2024. All rights reserved.