ReleasePageStreamFunction
Leave feedback
On this page
public interface ReleasePageStreamFunction
Functional interface that is used to close output stream that was used by Comparison to save preview image.
More details about its usage can be found in PreviewOptions class or in a documentation.
Example usage:
PreviewOptions previewOptions = new PreviewOptions(pageNumber -> {
return new FileOutputStream("/path/page-" + pageNumber + ".png");
}, (pageNumber, pageStream) -> {
// do something
pageStream.close();
});
| Method | Description |
|---|---|
| invoke(int pageNumber, OutputStream pageStream) | Function that is called by Comparison to close output stream where page preview image was saved. |
public abstract void invoke(int pageNumber, OutputStream pageStream)
Function that is called by Comparison to close output stream where page preview image was saved.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageNumber | int | The number of previewed page. |
| pageStream | java.io.OutputStream | The stream to be closed. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.