public interface PageStreamFactory
The PageStreamFactory interface declares methods that are used to create and release an output page stream. Implementations
of this interface should provide the necessary functionality to create a page stream for writing output page data, as well as release
any resources associated with the page stream.
Example usage:
final PageStreamFactory pageStreamFactory = new PageStreamFactory() {
public OutputStream createPageStream(int pageNumber) {
// Custom implementation to create and return an output page stream for the specified page number
}PngViewOptions| Modifier and Type | Method and Description |
|---|---|
void |
closePageStream(int pageNumber,
OutputStream pageStream)
Releases the stream created by
createPageStream(int) method. |
OutputStream |
createPageStream(int pageNumber)
Creates the stream used to write output page data.
|
void closePageStream(int pageNumber,
OutputStream pageStream)
Releases the stream created by createPageStream(int) method.
pageNumber - The number of the page.pageStream - The OutputStream created by createPageStream(int) method.OutputStream createPageStream(int pageNumber)
Creates the stream used to write output page data.
pageNumber - The number of the page.OutputStream used to write output page data.Copyright © 2024. All rights reserved.