@FunctionalInterface public interface StreamResourceWriter extends Serializable
OutputStream instance provided as an argument to its
accept(OutputStream, VaadinSession) method.| Modifier and Type | Method and Description |
|---|---|
void |
accept(OutputStream stream,
VaadinSession session)
Handles
stream (writes data to it) using session as a
context. |
void accept(OutputStream stream, VaadinSession session) throws IOException
stream (writes data to it) using session as a
context.
Note that the method is not called under the session lock. It means that if implementation requires access to the application/session data then the session has to be locked explicitly.
stream - data output streamsession - vaadin sessionIOException - if an IO error occurredCopyright © 2025. All rights reserved.