ReleaseFileStream
public interface ReleaseFileStream
Releases an interface that was instantiated by the method associated with the CreateFileStream interface.
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
Methods
Method | Description |
---|---|
invoke(Closeable fileStream) | Releases the stream created by the method associated with the CreateFileStream interface. |
invoke(Closeable fileStream)
public abstract void invoke(Closeable fileStream)
Releases the stream created by the method associated with the CreateFileStream interface.
Parameters:
Parameter | Type | Description |
---|---|---|
fileStream | java.io.Closeable | The stream to be released. |