@FunctionalInterface public interface CreateFileStream
The CreateFileStream interface is a functional interface that provides a method for instantiating a stream used to write data to an output file. Implementing classes or lambdas can use this interface to customize the creation of the output file stream based on specific requirements.
Example usage:
CreateFileStream createFileStream = (filePath) -> new FileOutputStream(filePath);
PdfViewOptions pdfViewOptions = new PdfViewOptions(createFileStream);
Note: The CreateFileStream interface can be used to define different strategies for creating output file streams, such as using a FileOutputStream or any other custom stream implementation.
PdfViewOptions| Modifier and Type | Method and Description |
|---|---|
OutputStream |
invoke()
Returns an
OutputStream that will be used to write output file data. |
OutputStream invoke()
Returns an OutputStream that will be used to write output file data.
Copyright © 2024. All rights reserved.