CreatePageStream
Leave feedback
On this page
public interface CreatePageStream
Represents an interface that instantiates a stream used to write output page data.
The CreatePageStream interface is a functional interface that provides a method for creating a stream to write the output page data. It can be implemented by custom classes to define the behavior of generating and writing page data to a stream.
Example usage:
CreatePageStream createPageStream = pageNumber -> new FileOutputStream("page-" + pageNumber + ".html");
HtmlViewOptions htmlViewOptions = HtmlViewOptions.forEmbeddedResources(createPageStream);
| Method | Description |
|---|---|
| invoke(int pageNumber) | Returns an OutputStream that will be used to write output page data. |
public abstract OutputStream invoke(int pageNumber)
Returns an OutputStream that will be used to write output page data.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageNumber | int | Number of the page. |
Returns: java.io.OutputStream - the stream used to write output page data.
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.