@FunctionalInterface public interface ReleaseFileStream
The ReleaseFileStream interface represents a functional interface that declares a method to release a closeable
that was previously instantiated by the corresponding method in the CreateFileStream interface. Implementations
of this interface should provide the necessary functionality to release any resources associated with the object.
Example usage:
ReleaseFileStream releaseFileStream = (fileStream) -> {
// Custom implementation to release any resources associated with the file stream
};
PdfViewOptions pdfViewOptions = new PdfViewOptions(createFileStream, releaseFileStream);
// Use pdfViewOptions in Viewer
CreateFileStream,
PdfViewOptions| Modifier and Type | Method and Description |
|---|---|
void |
invoke(Closeable fileStream)
Releases the stream created by the method associated with the
CreateFileStream interface. |
void invoke(Closeable fileStream)
Releases the stream created by the method associated with the CreateFileStream interface.
fileStream - The stream to be released.Copyright © 2024. All rights reserved.